#39363 [Opn->Bgs]: Suggest different value for E_ALL

From: Date: Sat, 11 Nov 2006 00:01:51 +0000
Subject: #39363 [Opn->Bgs]: Suggest different value for E_ALL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104790@lists.php.net to get a copy of this message
ID: 39363 Updated by: tony2001@php.net Reported By: dsg at gleim dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.2.0 New Comment: >It is currently 2047 No, it's not: # php -r 'var_dump(E_ALL);' int(6143) Previous Comments: ------------------------------------------------------------------------ [2006-11-03 16:00:42] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39363&edit=1

« previous php.bugs (#104790) next »