Re: Trapping PHP errors

From: Date: Tue, 27 Jun 2000 01:06:55 +0000
Subject: Re: Trapping PHP errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3257@lists.php.net to get a copy of this message
D wrote: > > Hey, > > Is there any function to trap the php errors? Like if there is a > mysql or some other runtime handler. I would like to be able to have my > custom function called each time a runtime error occurs. > > I examined the source but all I was able to find was > set_user_error_handler() off the zend tree, but that seems to be internal > to zend. With things like MySQL (and others) you can call your function with an @ at the front which hides the error and then pops the error message into mysql_error and simiar functions. I'm sure there's a PHP error var as well but I forget :) Cheers, Graeme

« previous php.general (#3257) next »