Re: set_error_handler help

From: Date: Fri, 02 May 2008 18:26:52 +0000
Subject: Re: set_error_handler help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-273808@lists.php.net to get a copy of this message
Is there any way to use a class to handle errors? I've tried some stuff like set_error_handler("Error_Handler::logError" and such, but with no luck.
It accepts a "callback type, which is a pseudo type. Basically an array containg the object and the method to use. Eg. $obj = new ErrorHandlingObject(); set_error_handler(array($obj, 'myMethod')); -- Richard Heyes +----------------------------------------+ | Access SSH with a Windows mapped drive | | http://www.phpguru.org/sftpdrive | +----------------------------------------+

« previous php.general (#273808) next »