PHP now generates E_NOTICE for misspelled constant

This commit is contained in:
Olly Betts 2016-11-30 13:07:17 +13:00
commit f4d8a7f78b

View file

@ -271,7 +271,8 @@ if(EASY_TO_MISPEL) {
<p>
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.
</p>
<H3><a name="Php_nn2_2">34.2.2 Global Variables</a></H3>