ID: 22659 Updated by: [EMAIL PROTECTED] Reported By: steil at zweitwerk dot com -Status: Open +Status: Verified -Bug Type: Unknown/Other Function +Bug Type: Scripting Engine problem Operating System: Linux -PHP Version: 4.2.3 +PHP Version: 4.3.2RC1 New Comment:
It returns NULL for me. And this error message: "Warning - set_error_handler() expects argument 1, 'unknown_function', to be a valid callback" Previous Comments: ------------------------------------------------------------------------ [2003-03-12 10:13:47] steil at zweitwerk dot com 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 this bug report at http://bugs.php.net/?id=22659&edit=1