Page 1 of 1
Error reporting in PHP
Posted: Wed Jul 05, 2006 4:33 pm
by Ree
Ok, here's the thing. I want to set the highest error reporting level in my php.ini. I thought "E_ALL & E_STRICT" should be used, but this makes errors not display at all. Maybe it should be "E_ALL | E_STRICT"?
Posted: Wed Jul 05, 2006 4:44 pm
by feyd
try it and find out.

Posted: Wed Jul 05, 2006 5:37 pm
by RobertGonzalez
Displaying errors and reporting errors are two separate things. The directive error_reporting handles which level of error to report up to. display_errors tells PHP whether to actually show errors or not. You can have the most strict level of error_reporting (E_STRICT for PHP 5, E_ALL for PHP 4) and if display_errors is 'Off', you won't see a single error report.
Posted: Thu Jul 06, 2006 7:03 am
by Ree
Everah... I know that. The question was not about that. And BTW, having only E_STRICT makes at least some errors not to be displayed compared to plain E_ALL.
When I use E_ALL | E_STRICT it seems to work. Just not sure if all E_STRICT warnings are going to be displayed in this case.
Posted: Thu Jul 06, 2006 10:24 am
by RobertGonzalez
Sorry, I must have misunderstood your question. Have you read
the manual on error reporting levels and what they do? And
the part about using bitwise operators? These should be able to answer your question better than I could.