From f4d8a7f78b2392bbfd238d60721b401faec06dcc Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 30 Nov 2016 13:07:17 +1300 Subject: [PATCH] PHP now generates E_NOTICE for misspelled constant --- Doc/Manual/Php.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/Manual/Php.html b/Doc/Manual/Php.html index fea70a9fa..1ba950c27 100644 --- a/Doc/Manual/Php.html +++ b/Doc/Manual/Php.html @@ -271,7 +271,8 @@ if(EASY_TO_MISPEL) {

The mis-spelled constant will become the string 'EASY_TO_MISPEL', which is treated as true by the if test, when the value of the intended constant -would be treated as false! +would be treated as false! Modern versions of PHP will at least issue +a PHP notice by default when this happens.

34.2.2 Global Variables