Skip to content

Commit

Permalink
ensure displays_errors is off (default)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Aug 31, 2023
1 parent 8f4738f commit 1f2cfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/tests/new_oom.phpt
Expand Up @@ -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";
Expand Down

0 comments on commit 1f2cfd8

Please sign in to comment.