[doc-en] master: Note that error handlers are called regardless of error_reporting() (#5960)
| From: | qodelicious via GitHub | Date: | Mon, 19 Oct 2026 08:37:46 +0000 |
| Subject: | [doc-en] master: Note that error handlers are called regardless of error_reporting() (#5960) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23856@lists.php.net to get a copy of this message | ||
Author: qodelicious (qodelicious)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-10-19T10:37:43+02:00
Commit: https://github.com/php/doc-en/commit/960c68f48487243d05d2733f6df44a7b2672504e
Raw diff: https://github.com/php/doc-en/commit/960c68f48487243d05d2733f6df44a7b2672504e.diff
Note that error handlers are called regardless of error_reporting() (#5960)
Fixes #1283
Changed paths:
M reference/errorfunc/functions/error-reporting.xml
Diff:
diff --git a/reference/errorfunc/functions/error-reporting.xml
b/reference/errorfunc/functions/error-reporting.xml
index 25a45c6fcee5..4bb8592bafe8 100644
--- a/reference/errorfunc/functions/error-reporting.xml
+++ b/reference/errorfunc/functions/error-reporting.xml
@@ -132,6 +132,14 @@ ini_set('error_reporting', E_ALL);
behavior is equivalent to passing <constant>E_ALL</constant> constant.
</simpara>
</tip>
+ <note>
+ <simpara>
+ A custom error handler set with <function>set_error_handler</function> is
+ called regardless of the <function>error_reporting</function> level.
+ The handler can check the current level with
+ <function>error_reporting</function> and decide what to do.
+ </simpara>
+ </note>
</refsect1>
<refsect1 role="seealso">