Re: Setting try and catch to use my own error handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# martin@xxxxxxxxxxxxx / 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux