Re: Setting try and catch to use my own error handler
| From: | Roman Neuhauser | Date: | Fri, 20 Oct 2006 10:49:47 +0000 |
| Subject: | Re: Setting try and catch to use my own error handler | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243384@lists.php.net to get a copy of this message | ||
# martin@autotelic.com / 2006-10-20 15:50:32 +0900:
> set_error_handler(ErrorHandler::handleError());
> Inside my ErrorHandler, I have this:
> public static function handleError($errno, $errstr, $errfile, $errline)
> {
> echo "Hey dude! Error! " . $errno . $errstr . $errfile . $errline ;
> }
>
> However, I get errors saying that the arguments for handleError don't exist.
You are calling the method without any arguments:
> set_error_handler(ErrorHandler::handleError());
http://www.php.net/manual/en/language.pseudo-types.php
http://www.php.net/set_error_handler
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991