#50849 [Opn->Csd]: set_error_handler claims it makes error_reporting() settings have no effec
| From: | degeberg@php.net | Date: | Wed, 27 Jan 2010 12:27:56 +0000 |
| Subject: | #50849 [Opn->Csd]: set_error_handler claims it makes error_reporting() settings have no effec | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3785@lists.php.net to get a copy of this message | ||
ID: 50849
Updated by: degeberg@php.net
Reported By: chealer at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2010-01-27 12:26:37] svn@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=294084
Log: Fixed doc bug #50849 (set_error_handler claims it makes
error_reporting() settings have no effec)
------------------------------------------------------------------------
[2010-01-26 19:23:04] chealer at gmail dot com
Description:
------------
The set_error_handler() documentation contains:
It is important to remember that the standard PHP error handler is
completely bypassed. error_reporting() settings will have no effect and
your error handler will be called regardless - however you are still
able to read the current value of error_reporting and act
appropriately.
This is inexact. The standard PHP error handler is only bypassed for
errors of a type included by $error_types. Even then, the $error_handler
description suggests that the standard PHP error handler is not even
bypassed:
"If the function returns FALSE then the normal error handler
continues."
The whole page is very confusing regarding what happens to the normal
error handler.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50849&edit=1