Remove no longer used "log_errors_max_len" ini directive (#6838)

This commit is contained in:
Michael Voříšek 2021-05-08 02:07:35 +02:00 committed by GitHub
parent c4fe9fb375
commit cc2c810dcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 1 additions and 29 deletions

View file

@ -3,8 +3,6 @@ Bug #80901 (Info leak in ftp extension)
--EXTENSIONS--
ftp
pcntl
--INI--
log_errors_max_len=0
--FILE--
<?php
$bug80901 = true;

View file

@ -10,8 +10,6 @@ if ($cv[0] < 11 || ($cv[0] == 11 && $cv[1] < 2) || ($cv[0] == 11 && $cv[1] == 2
die("skip test works only with Oracle 11.2.0.3 or greater version of Oracle client libraries");
}
?>
--INI--
log_errors_max_len=4096
--FILE--
<?php

View file

@ -4,8 +4,6 @@ Fix #80960 (opendir() warning wrong info when failed on Windows)
<?php
if (PHP_OS_FAMILY !== "Windows") die("skip for Windows only");
?>
--INI--
log_errors_max_len=0
--FILE--
<?php
opendir("notexist*");

View file

@ -33,7 +33,6 @@ error_reporting = E_ALL
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
@ -69,7 +68,7 @@ foreach($newdirs as $newdir) {
--EXPECTF--
*** Testing parse_ini_file() : variation ***
New include path is : %sparse_ini_file_variation3.dir1%sparse_ini_file_variation3.dir2%sparse_ini_file_variation3.dir3%S
array(10) {
array(9) {
["error_reporting"]=>
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"]=>

View file

@ -1,7 +1,5 @@
--TEST--
highlight_file() and output buffer
--INI--
log_errors_max_len=4096
--FILE--
<?php

View file

@ -2,8 +2,6 @@
php_strip_whitespace() and output buffer
--SKIPIF--
<?php if( substr(PHP_OS, 0, 3) != "WIN") die('skip Windows only test');?>
--INI--
log_errors_max_len=4096
--FILE--
<?php
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));

View file

@ -2,8 +2,6 @@
php_strip_whitespace() and output buffer
--SKIPIF--
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
--INI--
log_errors_max_len=4096
--FILE--
<?php
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));

View file

@ -662,7 +662,6 @@ PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("ignore_user_abort", "0", PHP_INI_ALL, OnUpdateBool, ignore_user_abort, php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("implicit_flush", "0", PHP_INI_ALL, OnUpdateBool, implicit_flush, php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("log_errors", "0", PHP_INI_ALL, OnUpdateBool, log_errors, php_core_globals, core_globals)
STD_PHP_INI_ENTRY("log_errors_max_len", "1024", PHP_INI_ALL, OnUpdateLong, log_errors_max_len, php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("ignore_repeated_errors", "0", PHP_INI_ALL, OnUpdateBool, ignore_repeated_errors, php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("ignore_repeated_source", "0", PHP_INI_ALL, OnUpdateBool, ignore_repeated_source, php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("report_memleaks", "1", PHP_INI_ALL, OnUpdateBool, report_memleaks, php_core_globals, core_globals)

View file

@ -68,7 +68,6 @@ struct _php_core_globals {
zend_uchar display_errors;
bool display_startup_errors;
bool log_errors;
zend_long log_errors_max_len;
bool ignore_repeated_errors;
bool ignore_repeated_source;
bool report_memleaks;

View file

@ -519,11 +519,6 @@ display_startup_errors = On
; https://php.net/log-errors
log_errors = On
; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; https://php.net/log-errors-max-len
log_errors_max_len = 1024
; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; https://php.net/ignore-repeated-errors

View file

@ -521,11 +521,6 @@ display_startup_errors = Off
; https://php.net/log-errors
log_errors = On
; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; https://php.net/log-errors-max-len
log_errors_max_len = 1024
; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; https://php.net/ignore-repeated-errors

View file

@ -296,7 +296,6 @@ function main(): void
'precision=14',
'serialize_precision=-1',
'memory_limit=128M',
'log_errors_max_len=0',
'opcache.fast_shutdown=0',
'opcache.file_update_protection=0',
'opcache.revalidate_freq=0',