note 25876 rejected from function.set-error-handler by nicos
| From: | nicos@php.net | Date: | Wed, 09 Oct 2002 21:17:28 +0000 |
| Subject: | note 25876 rejected from function.set-error-handler by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37868@lists.php.net to get a copy of this message | ||
Need a help.
-----------------------------------
class Klasa{
function Handle($i,$j){
print("TEST");
}
function RunCapture(){
set_error_handler("Handle");
}
}
$obj=new Klasa();
-----------------------------------
This part of code, wont work good. I know to ways to set handler on method:
1) set_error_handler("\$this->Handle");
2) set_error_handler(Array($this,"Handle"));
both work ok in functions like usort, but doesnt work in set_error_handler.
I'm using PHP 4.2.3 and i'm unsure if it's a bug or my mistake.