From: steil at zweitwerk dot com Operating system: Linux PHP version: 4.2.3 PHP Bug Type: Unknown/Other Function Bug description: set_error_handler("foo") doesn't care if foo exists
What I mean is the following <?php // first call returns nothing $ret1 = set_error_handler("unknown_function"); var_dump($ret1); // second call returns "unknown_function" $ret2 = set_error_handler("another_unknown_function"); var_dump($ret2); ?> The documentation says set_error_handler() would return FALSE if an error occurs. Therefore, both of the above calls should return FALSE since setting the error handler to an unknown function is certainly an error. As a consequence I am not able to check if the call to set_error_handler() has been successful. -- Edit bug report at http://bugs.php.net/?id=22659&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22659&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22659&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22659&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22659&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22659&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22659&r=support Expected behavior: http://bugs.php.net/fix.php?id=22659&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22659&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22659&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22659&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22659&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22659&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22659&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22659&r=gnused