Edit report at http://bugs.php.net/bug.php?id=52563&edit=1
ID: 52563
Patch added by: aharvey@php.net
Reported by: mattgscox at hotmail dot com
Summary: [Feature request] error_reporting constant
Status: Open
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: Any
PHP Version: Irrelevant
Block user comment: N
New Comment:
The following patch has been added/updated:
Patch Name: E_NONE-and-E_EVERYTHING
Revision: 1281409252
URL:
http://bugs.php.net/patch-display.php?bug=52563&patch=E_NONE-and-E_EVERYTHING&revision=1281409252
Previous Comments:
------------------------------------------------------------------------
[2010-08-10 04:35:57] aharvey@php.net
It's a shame that E_ALL was changed to not mean "all errors" in the
first place, really.
I'll hack up a revised patch (along with an update to the UPGRADING
file, since I forgot that first time around) which defines E_EVERYTHING
= -1 -- we can bikeshed the exact name on Internals later, if necessary.
------------------------------------------------------------------------
[2010-08-09 19:31:41] kalle@php.net
While we are at it, we should add an E_ALL constant to -1 to display all
errors in the bitfield
------------------------------------------------------------------------
[2010-08-09 12:46:10] aharvey@php.net
The following patch has been added/updated:
Patch Name: E_NONE
Revision: 1281350770
URL:
http://bugs.php.net/patch-display.php?bug=52563&patch=E_NONE&revision=1281350770
------------------------------------------------------------------------
[2010-08-09 12:45:52] aharvey@php.net
Bah, forgot I don't have karma for Zend. Patch against trunk about to be
attached: this seems harmless enough, and a quick Google suggests people
do expect this to work.
------------------------------------------------------------------------
[2010-08-07 19:20:42] mattgscox at hotmail dot com
Description:
------------
Feature request only;
For completeness, and coding clarity, please define constant E_NONE to
set error reporting to none rather than relying on the absolute integer
value of 0
Test script:
---------------
error_reporting(E_NONE);
Expected result:
----------------
[No error warning]
Actual result:
--------------
PHP Notice: Use of undefined constant E_NONE - assumed 'E_NONE' ....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52563&edit=1