lighttpd forum php-shell > php-shell-cmd.php and __shell_error_handler()

Posted by Ilya (Guest)
on 11.06.2007 20:29
Hello, Jan.

I need change shell error handler (to skip errors prepended by @)

In php-shell-cmd.php on line 41 noticed that we "can set own 
error-handler by creating a function named __shell_error_handler".
But there are no code for this.

This can be done by changing the line 57 from
> set_error_handler("__shell_default_error_handler");
to
> set_error_handler(function_exists("__shell_error_handler")? "__shell_error_handler" : "__shell_default_error_handler");

Can you fix that?

P.S. Thank for this nice tool.