I have created a simple error handling class that writes an error to the database. During testing this class I noticed one thing, when I do:
trigger_error("Some warning message", E_USER_WARNING);
it writes the error message to the database properly (not displaying anything on the screen).
if I add the the following line directly after it (thus no error reporting code has changed at all):
$x=2/0;
I get "Warning: Division by zero in Unknown on line 0" on the screen output (and nothing is written to the database.
Is there something setting in the php.ini that is causing this, or what?
I should also note that I have set the following (before instantiating the errorHandler class):
error_reporting(2047); // I have also tried error_reporting(E_ALL) as well