mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
Merge branch 'PHP-8.3'
* PHP-8.3: ensure displays_errors is off (default)
This commit is contained in:
commit
2521a3fce1
@ -11,7 +11,7 @@ $file = __DIR__ . '/new_oom.inc';
|
||||
$php = PHP_BINARY;
|
||||
|
||||
foreach (get_declared_classes() as $class) {
|
||||
$output = shell_exec("$php $file $class 2>&1");
|
||||
$output = shell_exec("$php --no-php-ini $file $class 2>&1");
|
||||
if ($output && preg_match('(^\nFatal error: Allowed memory size of [0-9]+ bytes exhausted[^\r\n]* \(tried to allocate [0-9]+ bytes\) in [^\r\n]+ on line [0-9]+$)', $output) !== 1) {
|
||||
echo "Class $class failed\n";
|
||||
echo $output, "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user