]> granicus.if.org Git - php/commitdiff
Enable display_startup_errors by default
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 2 Sep 2019 08:13:54 +0000 (10:13 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 6 Sep 2019 12:33:03 +0000 (14:33 +0200)
UPGRADING
main/main.c
php.ini-development
php.ini-production

index 457ffb840913baee7bdbbe5172c58ebfde66605c..4075b917670e1c8b0a85dae89c92879610e1c15c 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -44,6 +44,7 @@ PHP 8.0 UPGRADE NOTES
     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.
+  . display_startup_errors is now enabled by default.
   . 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
index 37894b4764314c83d8c95f19b2c6b2e8adc106e4..a80e0cd7bf5a8a324965af4ff7594b1e6666cf93 100644 (file)
@@ -731,7 +731,7 @@ PHP_INI_BEGIN()
        PHP_INI_ENTRY_EX("highlight.string",            HL_STRING_COLOR,        PHP_INI_ALL,    NULL,                   php_ini_color_displayer_cb)
 
        STD_PHP_INI_ENTRY_EX("display_errors",          "1",            PHP_INI_ALL,            OnUpdateDisplayErrors,  display_errors,                 php_core_globals,       core_globals, display_errors_mode)
-       STD_PHP_INI_BOOLEAN("display_startup_errors",   "0",    PHP_INI_ALL,            OnUpdateBool,                   display_startup_errors, php_core_globals,       core_globals)
+       STD_PHP_INI_BOOLEAN("display_startup_errors",   "1",    PHP_INI_ALL,            OnUpdateBool,                   display_startup_errors, php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("enable_dl",                        "1",            PHP_INI_SYSTEM,         OnUpdateBool,                   enable_dl,                              php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("expose_php",                       "1",            PHP_INI_SYSTEM,         OnUpdateBool,                   expose_php,                             php_core_globals,       core_globals)
        STD_PHP_INI_ENTRY("docref_root",                        "",             PHP_INI_ALL,            OnUpdateString,                 docref_root,                    php_core_globals,       core_globals)
index 8ed25d8c82ab5b89de3ec5632cdf85d8fc972d47..88b7a0b66102dea4813df26289c833937e29cf1c 100644 (file)
@@ -99,7 +99,7 @@
 ;   Production Value: Off
 
 ; display_startup_errors
-;   Default Value: Off
+;   Default Value: On
 ;   Development Value: On
 ;   Production Value: Off
 
@@ -473,11 +473,9 @@ error_reporting = E_ALL
 display_errors = On
 
 ; The display of errors which occur during PHP's startup sequence are handled
-; separately from display_errors. PHP's default behavior is to suppress those
-; errors from clients. Turning the display of startup errors on can be useful in
-; debugging configuration problems. We strongly recommend you
-; set this to 'off' for production servers.
-; Default Value: Off
+; separately from display_errors. We strongly recommend you set this to 'off'
+; for production servers to avoid leaking configuration details.
+; Default Value: On
 ; Development Value: On
 ; Production Value: Off
 ; http://php.net/display-startup-errors
index e2eaa7514c1f34923b467051a34c63dbf0092343..3fb7d9201fb9cb48ef5ef3e0f5f93d88ce5184f4 100644 (file)
@@ -99,7 +99,7 @@
 ;   Production Value: Off
 
 ; display_startup_errors
-;   Default Value: Off
+;   Default Value: On
 ;   Development Value: On
 ;   Production Value: Off
 
@@ -475,11 +475,9 @@ error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
 display_errors = Off
 
 ; The display of errors which occur during PHP's startup sequence are handled
-; separately from display_errors. PHP's default behavior is to suppress those
-; errors from clients. Turning the display of startup errors on can be useful in
-; debugging configuration problems. We strongly recommend you
-; set this to 'off' for production servers.
-; Default Value: Off
+; separately from display_errors. We strongly recommend you set this to 'off'
+; for production servers to avoid leaking configuration details.
+; Default Value: On
 ; Development Value: On
 ; Production Value: Off
 ; http://php.net/display-startup-errors