Reputation: 1939
Today I noticed that for some reason, my PHP dev environment is not displaying any errors, for syntax or otherwise.
Was working on a WordPress plugin (with debug on for WordPress), and tested it by putting in a file
Nothing. No errors, no warnings, nothing. I know the file is being called, because I manually went to that file. Still nothing. Any ideas?
Upvotes: 1
Views: 248
Reputation: 5183
use echo error_reporting();
in php code of your dev env and compare it to error_reporting settings
in phpinfo()
(also in php dev env).
If equal, then check php.ini as it was told above.
Upvotes: 0
Reputation: 17032
Try setting error_reporting(E_ALL);
and check php.ini
settings for display_errors
Upvotes: 2
Reputation: 1939
As tftd pointed out, the display_errors php.ini option was set to off.
Upvotes: 1