I use set_error_handler() in my script but it fails and returns NULL
indicating an error has happened.
But there are no entries in error.log ore something similar.
How can I find out what actually went wrong?
PS: I use error_reporting(E_ALL) and init_set('display_errors', 'On') on
PHP 5.1.3
-
Richard Lynch wrote:
It's possible that you have mistaken whatever set_error_handler
returns for "no previous error handler" for NULL...
Are you using === NULL or is_null() to test?
If not, I suspect it's really returning FALSE or '' and what you think
is an error condition is, in fact, not an
chris smith wrote:
What does your code look like?
I just realized that when called a second time, set_error_handler()
returns my custom error handler but it is never triggered.
Code looks like this:
';
trigger_error('test error');
var_dump(set_error_handler('core_error_han
3 matches
Mail list logo