#25543 [Opn->Csd]: Error in set_error_handler() definition

From: Date: Mon, 28 Jun 2004 15:56:20 +0000
Subject: #25543 [Opn->Csd]: Error in set_error_handler() definition
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969361561@lists.php.net to get a copy of this message
ID: 25543 Updated by: didou@php.net Reported By: akul at inbox dot ru -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: All PHP Version: 4.3.3 New Comment: Fixed, the right type was mixed. I also added an explanation for the array returned Previous Comments: ------------------------------------------------------------------------ [2003-09-15 08:33:08] akul at inbox dot ru Description: ------------ I see: string set_error_handler ( callback error_handler) Must be: callback set_error_handler ( callback error_handler) Because: "Returns the _previously defined error handler_ (if any), or FALSE on error." Reproduce code: --------------- <? class a { function h() { echo "a::h()"; } }; set_error_handler(array('a','h')); print_r(set_error_handler(array('a','h'))); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25543&edit=1

« previous php.doc (#969361561) next »