Error reporting in PHP
Moderator: General Moderators
Error reporting in PHP
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"?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.