On Mon, 16 May 2005, George Schlossnagle wrote: > > On May 16, 2005, at 3:16 PM, Blake Matheny wrote: > > > Attached is a small patch that allows for a custom error handler to be used > > instead of php_log_err. This is useful for custom logging of error types > > that can't be handled with a user-space error handler (such as E_ERROR, > > E_PARSE, etc.). > > > > In order to use a custom error handler set error_log to so:/path/to/so in > > the php.ini file, where the shared object has a function called > > error_handler with the following prototype: > > > This is already possible without your patch: just write a php extension and > change the zend_error_cb function pointer to your custom C function in MINIT.
But make sure you call the original one after that... otherwise you might break other extensions that modify the error_cb (like Xdebug). Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php