1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-25 16:22:20 +01:00

set_error_handler() no longer returns null on failure

As of PHP 8.0.0, it throws a TypeError; prior to that version, that was
undefined behavior (as documented for internal functions).
This commit is contained in:
Christoph M. Becker
2021-11-18 15:23:04 +01:00
parent 59244d9ae9
commit 7a312f9c79

View File

@@ -172,8 +172,8 @@
&reftitle.returnvalues;
<para>
Returns the previously defined error handler (if any). If
the built-in error handler is used &null; is returned. &null; is also returned
in case of an error such as an invalid callback. If the previous error handler
the built-in error handler is used &null; is returned.
If the previous error handler
was a class method, this function will return an indexed array with the class
and the method name.
</para>