Skip to content

Commit ea5854c

Browse files
committed
Make error_reporting=E_ALL the default
1 parent f50f741 commit ea5854c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ PHP 8.0 UPGRADE NOTES
4242
. Any array that has a number n as its first numeric key will use n+1 for
4343
its next implicit key. Even if n is negative.
4444
RFC: https://wiki.php.net/rfc/negative_array_index
45+
. The default error_reporting level is now E_ALL. Previously it excluded
46+
E_NOTICE and E_DEPRECATED.
4547
. The @ operator will no longer silence fatal errors (E_ERROR, E_CORE_ERROR,
4648
E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR, E_PARSE). Error handlers
4749
that expect error_reporting to be 0 when @ is used, should be adjusted to

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ ZEND_API zend_bool zend_rc_debug = 0;
9494
static ZEND_INI_MH(OnUpdateErrorReporting) /* {{{ */
9595
{
9696
if (!new_value) {
97-
EG(error_reporting) = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED;
97+
EG(error_reporting) = E_ALL;
9898
} else {
9999
EG(error_reporting) = atoi(ZSTR_VAL(new_value));
100100
}

php.ini-development

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
; Production Value: Off
105105

106106
; error_reporting
107-
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
107+
; Default Value: E_ALL
108108
; Development Value: E_ALL
109109
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110110

@@ -449,7 +449,7 @@ memory_limit = 128M
449449
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
450450
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
451451
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
452-
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
452+
; Default Value: E_ALL
453453
; Development Value: E_ALL
454454
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
455455
; http://php.net/error-reporting

php.ini-production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
; Production Value: Off
105105

106106
; error_reporting
107-
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
107+
; Default Value: E_ALL
108108
; Development Value: E_ALL
109109
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110110

@@ -451,7 +451,7 @@ memory_limit = 128M
451451
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
452452
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
453453
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
454-
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
454+
; Default Value: E_ALL
455455
; Development Value: E_ALL
456456
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
457457
; http://php.net/error-reporting

0 commit comments

Comments
 (0)