PHP now generates E_NOTICE for misspelled constant
This commit is contained in:
parent
1169874f59
commit
f4d8a7f78b
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue