php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39363 Suggest different value for E_ALL
Submitted: 2006-11-03 16:00 UTC Modified: 2006-11-11 00:01 UTC
From: dsg at gleim dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.0 OS: Linux
Private report: No CVE-ID: None
 [2006-11-03 16:00 UTC] dsg at gleim dot com
Description:
------------
Please change the value for E_ALL.  It is currently 2047 which only encompasses old errors, not new ones.  It occurs to me that you could change the value to the maximum integer value and it would truly represent all codes and leave room for expansion.

This shouldn't break existing code since E_ALL is just used for comparison with flags. 

See http://www.php.net/manual/en/function.error-reporting.php.  E_ALL should mean all errors, but it doesn't.  This can be fixed.


Reproduce code:
---------------
// Suggestion item, not defect.

error_reporting(E_ALL | E_STRICT | E_RECOVERABLE_ERROR)

// This doesn't make sense.
// All errors + strict errors + ??? + any new errors?

Expected result:
----------------
Suggestion item, not bug.

Actual result:
--------------
Suggestion item, not bug.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-11 00:01 UTC] tony2001@php.net
>It is currently 2047
No, it's not:
# php -r 'var_dump(E_ALL);'
int(6143)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 23 16:00:03 2025 UTC