Doc #49872 [Com]: Default for error_reporting() level not documented
| From: | chealer at gmail dot com | Date: | Wed, 26 Dec 2018 23:27:37 +0000 |
| Subject: | Doc #49872 [Com]: Default for error_reporting() level not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16232@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=49872&edit=1
ID: 49872
Comment by: chealer at gmail dot com
Reported by: chealer at gmail dot com
Summary: Default for error_reporting() level not documented
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Debian
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This was reported in ticket #50548. The issue was solved since.
Previous Comments:
------------------------------------------------------------------------
[2009-12-11 04:49:51] chealer at gmail dot com
Could someone please fix the status?
------------------------------------------------------------------------
[2009-10-14 17:42:34] chealer at gmail dot com
Yet the synopsis reads "Sets which PHP errors are reported".
If this only happens in some cases, the synopsis is incorrect.
"Get the current error_reporting level, optionally changing it"
might fix, but I'm sure there is a better modification to make
things crystal-clear.
------------------------------------------------------------------------
[2009-10-14 09:39:30] rquadling@php.net
That's the point. There is no effect.
The return value is documented. Supplying the optional value sets the
level to the supplied optional value.
The parameter of "level" also shows that the value you supply is the new
level you want to set.
So. Everything covered.
error_reporting() will return the current level.
error_reporting(xxx) will return the current level and then set it to
the supplied level.
------------------------------------------------------------------------
[2009-10-14 09:33:45] chealer at gmail dot com
Whatever interpretation you like, this is not a bogus issue. The
effect of calling error_reporting() is not documented.
------------------------------------------------------------------------
[2009-10-14 09:28:44] rquadling@php.net
The level is optional and does not have a default value, though I
suppose you could argue that the default is the current error_reporting
level.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=49872
--
Edit this bug report at https://bugs.php.net/bug.php?id=49872&edit=1