From 3ccc0409ceb6d187b9fa5a3b599327ed3e59ff0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 8 May 2021 02:07:35 +0200 Subject: [PATCH] Remove no longer used "log_errors_max_len" ini directive (#6838) This is a re-application of the original match against master. The patch was originally applied to master, then reverted from there, incorrectly applied to PHP-8.0, reverted from there due to ABI break, and now lands on master again. We can only hope that it does not get reverted again ;) --- UPGRADING | 3 +++ ext/ftp/tests/bug80901.phpt | 2 -- ext/oci8/tests/error3.phpt | 2 -- ext/standard/tests/dir/bug80960.phpt | 2 -- ext/standard/tests/file/parse_ini_file_variation3.phpt | 5 +---- ext/standard/tests/strings/006.phpt | 2 -- ext/standard/tests/strings/007-win32.phpt | 2 -- ext/standard/tests/strings/007.phpt | 2 -- main/main.c | 1 - main/php_globals.h | 1 - php.ini-development | 5 ----- php.ini-production | 5 ----- run-tests.php | 1 - 13 files changed, 4 insertions(+), 29 deletions(-) diff --git a/UPGRADING b/UPGRADING index 76cb7821788..678d433e7d0 100644 --- a/UPGRADING +++ b/UPGRADING @@ -384,6 +384,9 @@ PHP 8.1 UPGRADE NOTES 11. Changes to INI File Handling ======================================== +- The log_errors_max_len ini setting has been removed. It no longer had an + effect since PHP 8.0. + ======================================== 12. Windows Support ======================================== diff --git a/ext/ftp/tests/bug80901.phpt b/ext/ftp/tests/bug80901.phpt index 58670dfb30d..e2a58fa0668 100644 --- a/ext/ftp/tests/bug80901.phpt +++ b/ext/ftp/tests/bug80901.phpt @@ -3,8 +3,6 @@ Bug #80901 (Info leak in ftp extension) --EXTENSIONS-- ftp pcntl ---INI-- -log_errors_max_len=0 --FILE-- ---INI-- -log_errors_max_len=4096 --FILE-- ---INI-- -log_errors_max_len=0 --FILE-- string(5) "32767" ["display_errors"]=> @@ -78,8 +77,6 @@ array(10) { string(0) "" ["log_errors"]=> string(0) "" - ["log_errors_max_len"]=> - string(4) "1024" ["ignore_repeated_errors"]=> string(0) "" ["ignore_repeated_source"]=> diff --git a/ext/standard/tests/strings/006.phpt b/ext/standard/tests/strings/006.phpt index 5f36d9aa8df..dabed24c578 100644 --- a/ext/standard/tests/strings/006.phpt +++ b/ext/standard/tests/strings/006.phpt @@ -1,7 +1,5 @@ --TEST-- highlight_file() and output buffer ---INI-- -log_errors_max_len=4096 --FILE-- ---INI-- -log_errors_max_len=4096 --FILE-- ---INI-- -log_errors_max_len=4096 --FILE--