PHP does not issue a warning for undefined variables

Please correct me if I am wrong. From what I'm going to, PHP should issue a warning for this, but it is not. I am using PHP 5.2.17. How can i fix this? I assume this is installed somewhere in php.ini?

+3
source share
2 answers

Check documents for error messages . I believe that if you enable it E_NOTICE, you will see warnings for undefined variables. You can read all error reporting constants here .

+4
source

Probably disabled.

error_reporting(-1);

, .

+3

All Articles