note 25876 added to function.set-error-handler

From: Date: Wed, 09 Oct 2002 18:13:02 +0000
Subject: note 25876 added to function.set-error-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-37858@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. -- http://www.php.net/manual/en/function.set-error-handler.php http://master.php.net/manage/user-notes.php?action=edit+25876 http://master.php.net/manage/user-notes.php?action=delete+25876 http://master.php.net/manage/user-notes.php?action=reject+25876

« previous php.notes (#37858) next »