RE: [PHP] set_error_handler inside a class

From: Date: Tue, 28 Jan 2003 20:48:55 +0000
Subject: RE: [PHP] set_error_handler inside a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133433@lists.php.net to get a copy of this message
sorry is there a way to do this in php3 ? my work currently only has php3 , where i am upgrading it for them soon, this is a bummer, i soughta wanna catch errors and show the line and file in the error too -----Original Message----- From: John W. Holmes [mailto:holmes072000@charter.net] Sent: Wednesday, January 29, 2003 4:51 AM To: 'electroteque'; php-general@lists.php.net Subject: RE: [PHP] set_error_handler inside a class > hi guys how is ti possible to do a set_error_handler within a class so it > will trigger the callback function and so will be able to return the line > and file in the message ? You'd set it just like you would anywhere else in your code. If you want the callback function to be a method in your class, then you pass an array to set_error_handler(). Details are in the manual on the format of the array. It'll be the same as any other callback function that you can send a classes method to. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#133433) next »