|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-25 14:35 UTC] sebastian@php.net
[2008-11-01 06:11 UTC] kalle@php.net
[2020-02-07 06:10 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 13:00:02 2026 UTC |
Description: ------------ The documentation for set_error_handler() seems to be wrong: <?php function handler($errno, $errstr, $errfile, $errline, $errcontext) {} var_dump(set_error_handler('handler')); var_dump(set_error_handler('handler')); NULL string(7) "handler" So NULL is not used for errors. NULL means the default error handler here apparently. Whereas the documentation reads: "Returns a string containing the previously defined error handler (if any), or NULL on error. If the previous handler was a class method, this function will return an indexed array with the class and the method name." The code reads: "Returns the previously defined error handler, or false on error."