com php-src: Make error_reporting=E_ALL the default : UPGRADING Zend/zend.c php.ini-development php .ini-production
| From: | Nikita Popov | Date: | Mon, 02 Sep 2019 08:03:26 +0000 |
| Subject: | com php-src: Make error_reporting=E_ALL the default : UPGRADING Zend/zend.c php.ini-development php .ini-production | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108174@lists.php.net to get a copy of this message | ||
Commit: ea5854ca8c1193aacaee6fe059b2bfba636769e0
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 30 Aug 2019 10:31:32 +0200
Parents: f50f7418b5c1bd0998feb987193c8859610d6ac9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ea5854ca8c1193aacaee6fe059b2bfba636769e0
Log:
Make error_reporting=E_ALL the default
Changed paths:
M UPGRADING
M Zend/zend.c
M php.ini-development
M php.ini-production
Diff:
diff --git a/UPGRADING b/UPGRADING
index e4f2fec..457ffb8 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -42,6 +42,8 @@ PHP 8.0 UPGRADE NOTES
. Any array that has a number n as its first numeric key will use n+1 for
its next implicit key. Even if n is negative.
RFC: https://wiki.php.net/rfc/negative_array_index
+ . The default error_reporting level is now E_ALL. Previously it excluded
+ E_NOTICE and E_DEPRECATED.
. The @ operator will no longer silence fatal errors (E_ERROR, E_CORE_ERROR,
E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR, E_PARSE). Error handlers
that expect error_reporting to be 0 when @ is used, should be adjusted to
diff --git a/Zend/zend.c b/Zend/zend.c
index 526eaaf..4338fcb90 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -94,7 +94,7 @@ ZEND_API zend_bool zend_rc_debug = 0;
static ZEND_INI_MH(OnUpdateErrorReporting) /* {{{ */
{
if (!new_value) {
- EG(error_reporting) = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED;
+ EG(error_reporting) = E_ALL;
} else {
EG(error_reporting) = atoi(ZSTR_VAL(new_value));
}
diff --git a/php.ini-development b/php.ini-development
index ad5cc8e..bceca38 100644
--- a/php.ini-development
+++ b/php.ini-development
@@ -104,7 +104,7 @@
; Production Value: Off
; error_reporting
-; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
+; Default Value: E_ALL
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
@@ -449,7 +449,7 @@ memory_limit = 128M
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding
standards warnings.)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
-; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
+; Default Value: E_ALL
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
diff --git a/php.ini-production b/php.ini-production
index 2184643..6f69624 100644
--- a/php.ini-production
+++ b/php.ini-production
@@ -104,7 +104,7 @@
; Production Value: Off
; error_reporting
-; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
+; Default Value: E_ALL
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
@@ -451,7 +451,7 @@ memory_limit = 128M
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding
standards warnings.)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
-; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
+; Default Value: E_ALL
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting