From 784c07a5d72a05e9bf7e11aa2fc1209c68b5f36c Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Mon, 9 Mar 2026 21:00:48 +0100 Subject: [PATCH 1/3] document PHP 8.5.0 ini directive deprecations and removals --- appendices/ini.core.xml | 25 +++++++++++++++++++------ appendices/ini.list.xml | 6 +++--- features/commandline.xml | 5 +++++ install/fpm/configuration.xml | 3 +-- reference/errorfunc/ini.xml | 11 ++++++++--- 5 files changed, 36 insertions(+), 14 deletions(-) diff --git a/appendices/ini.core.xml b/appendices/ini.core.xml index 5497f9938508..ac4ccafab9f7 100644 --- a/appendices/ini.core.xml +++ b/appendices/ini.core.xml @@ -60,7 +60,7 @@ disable_classes "" &php.ini; only - + Removed as of PHP 8.5.0 exit_on_timeout @@ -235,15 +235,15 @@ string - + This directive allows certain classes to be disabled. It takes a comma-delimited list of class names. Disabling a class just prevents the class's instantiation. - - + + Only internal classes can be disabled using this directive. User-defined classes are unaffected. - + This directive must be set in &php.ini;. It cannot be set in &httpd.conf;. @@ -254,6 +254,11 @@ sufficient security measure for shared hosting environments. + + + This directive has been REMOVED as of PHP 8.5.0. + + @@ -599,7 +604,7 @@ Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in Unk register_argc_argv "1" INI_PERDIR - + Deprecated as of PHP 8.5.0 and will be removed in the future enable_post_data_reading @@ -789,6 +794,14 @@ Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in Unk See also command line. + + + This directive has been DEPRECATED as of PHP 8.5.0 and will be removed in the future. + Configure register_argc_argv=0 and switch to either $_GET + or $_SERVER['QUERY_STRING'] to access the information, + after verifying that the usage is safe. + + diff --git a/appendices/ini.list.xml b/appendices/ini.list.xml index c4d1f407bee9..08db137f1a03 100644 --- a/appendices/ini.list.xml +++ b/appendices/ini.list.xml @@ -207,7 +207,7 @@ disable_classes "" &php.ini; only - + Removed as of PHP 8.5.0 disable_functions @@ -551,13 +551,13 @@ register_argc_argv "1" INI_PERDIR - + Deprecated as of PHP 8.5.0 and will be removed in the future report_memleaks "1" INI_ALL - + Deprecated as of PHP 8.5.0 and will be removed in the future report_zend_debug diff --git a/features/commandline.xml b/features/commandline.xml index 4de9b010ba5f..b02975bd0638 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -203,6 +203,11 @@ if (php_sapi_name() === 'cli') { + + + This directive has been DEPRECATED as of PHP 8.5.0 and will be removed in the future. + + diff --git a/install/fpm/configuration.xml b/install/fpm/configuration.xml index 12ef26f48af9..5fbc0aec71e0 100644 --- a/install/fpm/configuration.xml +++ b/install/fpm/configuration.xml @@ -1027,8 +1027,7 @@ php_admin_value[memory_limit] = 32M PHP settings passed with php_value or php_flag will overwrite their previous value. Please note that defining - disable_functions or - disable_classes will + disable_functions will not overwrite previously defined php.ini values, but will append the new value instead. diff --git a/reference/errorfunc/ini.xml b/reference/errorfunc/ini.xml index c10661d09894..d0695670c78d 100644 --- a/reference/errorfunc/ini.xml +++ b/reference/errorfunc/ini.xml @@ -64,7 +64,7 @@ report_memleaks "1" INI_ALL - + Deprecated as of PHP 8.5.0 and will be removed in the future track_errors @@ -318,7 +318,7 @@ bool - + If this parameter is set to On (the default), this parameter will show a report of memory leaks detected by the Zend memory manager. This report will be sent to stderr on Posix platforms. On Windows, it will be sent @@ -327,7 +327,12 @@ This parameter only has effect in a debug build and if error_reporting includes E_WARNING in the allowed list. - + + + + This directive has been DEPRECATED as of PHP 8.5.0 and will be removed in the future. + + From f5f175c59f55e5fc98a8e31b59bc814be8c09fd6 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Wed, 18 Mar 2026 20:00:53 +0800 Subject: [PATCH 2/3] standardize deprecation notices --- appendices/ini.list.xml | 4 ++-- features/commandline.xml | 2 +- reference/errorfunc/ini.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/appendices/ini.list.xml b/appendices/ini.list.xml index 08db137f1a03..d90b905c3b17 100644 --- a/appendices/ini.list.xml +++ b/appendices/ini.list.xml @@ -551,13 +551,13 @@ register_argc_argv "1" INI_PERDIR - Deprecated as of PHP 8.5.0 and will be removed in the future + Deprecated as of PHP 8.5.0 report_memleaks "1" INI_ALL - Deprecated as of PHP 8.5.0 and will be removed in the future + Deprecated as of PHP 8.5.0 report_zend_debug diff --git a/features/commandline.xml b/features/commandline.xml index b02975bd0638..579d7c592d3c 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -205,7 +205,7 @@ if (php_sapi_name() === 'cli') { - This directive has been DEPRECATED as of PHP 8.5.0 and will be removed in the future. + This feature has been DEPRECATED as of PHP 8.5.0. diff --git a/reference/errorfunc/ini.xml b/reference/errorfunc/ini.xml index d0695670c78d..3847d280dd90 100644 --- a/reference/errorfunc/ini.xml +++ b/reference/errorfunc/ini.xml @@ -64,7 +64,7 @@ report_memleaks "1" INI_ALL - Deprecated as of PHP 8.5.0 and will be removed in the future + Deprecated as of PHP 8.5.0 track_errors @@ -330,7 +330,7 @@ - This directive has been DEPRECATED as of PHP 8.5.0 and will be removed in the future. + This feature has been DEPRECATED as of PHP 8.5.0. From 2d6fb23e0fb7a40ca25086d9dac763f12b02daec Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Sat, 21 Mar 2026 19:59:27 +0800 Subject: [PATCH 3/3] replace deprecated feature warnings with entity reference --- appendices/ini.core.xml | 12 ++++-------- features/commandline.xml | 6 +----- language-snippets.ent | 4 ++++ reference/errorfunc/ini.xml | 6 +----- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/appendices/ini.core.xml b/appendices/ini.core.xml index ac4ccafab9f7..c47e8f6e5ae3 100644 --- a/appendices/ini.core.xml +++ b/appendices/ini.core.xml @@ -254,11 +254,7 @@ sufficient security measure for shared hosting environments. - - - This directive has been REMOVED as of PHP 8.5.0. - - + &warn.removed.feature-8-5-0; @@ -794,14 +790,14 @@ Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in Unk See also command line. - + &warn.deprecated.feature-8-5-0; + - This directive has been DEPRECATED as of PHP 8.5.0 and will be removed in the future. Configure register_argc_argv=0 and switch to either $_GET or $_SERVER['QUERY_STRING'] to access the information, after verifying that the usage is safe. - + diff --git a/features/commandline.xml b/features/commandline.xml index 579d7c592d3c..d074c4e397b0 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -203,11 +203,7 @@ if (php_sapi_name() === 'cli') { - - - This feature has been DEPRECATED as of PHP 8.5.0. - - + &warn.deprecated.feature-8-5-0; diff --git a/language-snippets.ent b/language-snippets.ent index 302a9c81131d..f62f321c6bce 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -462,6 +462,10 @@ xmlns="http://docbook.org/ns/docbook">This function was This alias is REMOVED as of PHP 8.0.0.'> +This feature has been +REMOVED as of PHP 8.5.0.'> + This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. diff --git a/reference/errorfunc/ini.xml b/reference/errorfunc/ini.xml index 3847d280dd90..97ea69fc24ac 100644 --- a/reference/errorfunc/ini.xml +++ b/reference/errorfunc/ini.xml @@ -328,11 +328,7 @@ error_reporting includes E_WARNING in the allowed list. - - - This feature has been DEPRECATED as of PHP 8.5.0. - - + &warn.deprecated.feature-8-5-0;