mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Remove no longer used "log_errors_max_len" ini directive (#6838)
This commit is contained in:
parent
c4fe9fb375
commit
cc2c810dcf
12 changed files with 1 additions and 29 deletions
|
@ -3,8 +3,6 @@ Bug #80901 (Info leak in ftp extension)
|
||||||
--EXTENSIONS--
|
--EXTENSIONS--
|
||||||
ftp
|
ftp
|
||||||
pcntl
|
pcntl
|
||||||
--INI--
|
|
||||||
log_errors_max_len=0
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$bug80901 = true;
|
$bug80901 = true;
|
||||||
|
|
|
@ -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");
|
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--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ Fix #80960 (opendir() warning wrong info when failed on Windows)
|
||||||
<?php
|
<?php
|
||||||
if (PHP_OS_FAMILY !== "Windows") die("skip for Windows only");
|
if (PHP_OS_FAMILY !== "Windows") die("skip for Windows only");
|
||||||
?>
|
?>
|
||||||
--INI--
|
|
||||||
log_errors_max_len=0
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
opendir("notexist*");
|
opendir("notexist*");
|
||||||
|
|
|
@ -33,7 +33,6 @@ error_reporting = E_ALL
|
||||||
display_errors = On
|
display_errors = On
|
||||||
display_startup_errors = Off
|
display_startup_errors = Off
|
||||||
log_errors = Off
|
log_errors = Off
|
||||||
log_errors_max_len = 1024
|
|
||||||
ignore_repeated_errors = Off
|
ignore_repeated_errors = Off
|
||||||
ignore_repeated_source = Off
|
ignore_repeated_source = Off
|
||||||
report_memleaks = On
|
report_memleaks = On
|
||||||
|
@ -69,7 +68,7 @@ foreach($newdirs as $newdir) {
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
*** Testing parse_ini_file() : variation ***
|
*** 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
|
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"]=>
|
["error_reporting"]=>
|
||||||
string(5) "32767"
|
string(5) "32767"
|
||||||
["display_errors"]=>
|
["display_errors"]=>
|
||||||
|
@ -78,8 +77,6 @@ array(10) {
|
||||||
string(0) ""
|
string(0) ""
|
||||||
["log_errors"]=>
|
["log_errors"]=>
|
||||||
string(0) ""
|
string(0) ""
|
||||||
["log_errors_max_len"]=>
|
|
||||||
string(4) "1024"
|
|
||||||
["ignore_repeated_errors"]=>
|
["ignore_repeated_errors"]=>
|
||||||
string(0) ""
|
string(0) ""
|
||||||
["ignore_repeated_source"]=>
|
["ignore_repeated_source"]=>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
highlight_file() and output buffer
|
highlight_file() and output buffer
|
||||||
--INI--
|
|
||||||
log_errors_max_len=4096
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
php_strip_whitespace() and output buffer
|
php_strip_whitespace() and output buffer
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php if( substr(PHP_OS, 0, 3) != "WIN") die('skip Windows only test');?>
|
<?php if( substr(PHP_OS, 0, 3) != "WIN") die('skip Windows only test');?>
|
||||||
--INI--
|
|
||||||
log_errors_max_len=4096
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
|
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
php_strip_whitespace() and output buffer
|
php_strip_whitespace() and output buffer
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
|
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
|
||||||
--INI--
|
|
||||||
log_errors_max_len=4096
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
|
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __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("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("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_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_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("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)
|
STD_PHP_INI_BOOLEAN("report_memleaks", "1", PHP_INI_ALL, OnUpdateBool, report_memleaks, php_core_globals, core_globals)
|
||||||
|
|
|
@ -68,7 +68,6 @@ struct _php_core_globals {
|
||||||
zend_uchar display_errors;
|
zend_uchar display_errors;
|
||||||
bool display_startup_errors;
|
bool display_startup_errors;
|
||||||
bool log_errors;
|
bool log_errors;
|
||||||
zend_long log_errors_max_len;
|
|
||||||
bool ignore_repeated_errors;
|
bool ignore_repeated_errors;
|
||||||
bool ignore_repeated_source;
|
bool ignore_repeated_source;
|
||||||
bool report_memleaks;
|
bool report_memleaks;
|
||||||
|
|
|
@ -519,11 +519,6 @@ display_startup_errors = On
|
||||||
; https://php.net/log-errors
|
; https://php.net/log-errors
|
||||||
log_errors = On
|
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
|
; Do not log repeated messages. Repeated errors must occur in same file on same
|
||||||
; line unless ignore_repeated_source is set true.
|
; line unless ignore_repeated_source is set true.
|
||||||
; https://php.net/ignore-repeated-errors
|
; https://php.net/ignore-repeated-errors
|
||||||
|
|
|
@ -521,11 +521,6 @@ display_startup_errors = Off
|
||||||
; https://php.net/log-errors
|
; https://php.net/log-errors
|
||||||
log_errors = On
|
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
|
; Do not log repeated messages. Repeated errors must occur in same file on same
|
||||||
; line unless ignore_repeated_source is set true.
|
; line unless ignore_repeated_source is set true.
|
||||||
; https://php.net/ignore-repeated-errors
|
; https://php.net/ignore-repeated-errors
|
||||||
|
|
|
@ -296,7 +296,6 @@ function main(): void
|
||||||
'precision=14',
|
'precision=14',
|
||||||
'serialize_precision=-1',
|
'serialize_precision=-1',
|
||||||
'memory_limit=128M',
|
'memory_limit=128M',
|
||||||
'log_errors_max_len=0',
|
|
||||||
'opcache.fast_shutdown=0',
|
'opcache.fast_shutdown=0',
|
||||||
'opcache.file_update_protection=0',
|
'opcache.file_update_protection=0',
|
||||||
'opcache.revalidate_freq=0',
|
'opcache.revalidate_freq=0',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue