set_error_handler always returns false

From: Date: Mon, 23 Jun 2003 22:12:33 +0000
Subject: set_error_handler always returns false
Groups: php.general 
Request: Send a blank email to php-general+get-152545@lists.php.net to get a copy of this message
I'm using PHP 4.3.1 as an Apache module. No matter what I try, I can't get set_error_handler() to do anything other than return false. Under what circumstances does this happen? <?php function doobee($errno, $errstr, $errfile, $errline, $errcontext) { echo "Handled."; } $retval = true; if (($retval = set_error_handler("doobee")) == false) echo "Didn't work."; // echos every time ?> -- Jeff S.

« previous php.general (#152545) next »