Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP does not issue a warning for undefined variables

Please correct me if I am wrong. From what I gather, PHP should issue a warning for this but doesn't. I am using PHP 5.2.17. How can I fix this? I am assuming this is set somewhere in php.ini?

like image 681
Tyler Crompton Avatar asked Jul 13 '26 00:07

Tyler Crompton


1 Answers

Check the docs for error reporting. I believe if you enable E_NOTICE you'll see warnings for undefined variables. You can read up on all the error reporting constants here.

like image 134
Steven Mercatante Avatar answered Jul 14 '26 12:07

Steven Mercatante



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!