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?
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 .
E_NOTICE
Probably disabled.
error_reporting(-1);
, .