Skip to content

Commit e1c2d41

Browse files
committed
Try to make test more reliable
1 parent 9f54cac commit e1c2d41

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ext/opcache/tests/jit/gh14361.phpt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@ GH-14361 (Deep recursion in zend_cfg.c causes segfault instead of error)
33
--SKIPIF--
44
<?php
55
if (!function_exists('zend_test_zend_call_stack_get')) die("skip zend_test_zend_call_stack_get() is not available");
6+
if (PHP_ZTS !== 0) die("skip gives additional warning on ZTS");
67
?>
78
--EXTENSIONS--
89
zend_test
910
opcache
1011
--INI--
11-
zend.max_allowed_stack_size=64K
12+
error_reporting=E_COMPILE_ERROR
13+
zend.max_allowed_stack_size=128K
1214
opcache.enable=1
1315
opcache.enable_cli=1
1416
opcache.jit=tracing
17+
opcache.jit_buffer_size=64M
1518
opcache.optimization_level=0x000000a0
1619
--FILE--
1720
<?php
1821
$tmp = fopen(__DIR__."/gh14361_tmp.php", "w");
1922
fwrite($tmp, '<?php ');
20-
for ($i = 0; $i < 10000; $i++) {
23+
for ($i = 0; $i < 70000; $i++) {
2124
fwrite($tmp, 'if (@((0) == (0)) !== (true)) { $f++; }');
2225
}
2326
fclose($tmp);
@@ -29,5 +32,4 @@ include __DIR__."/gh14361_tmp.php";
2932
@unlink(__DIR__."/gh14361_tmp.php");
3033
?>
3134
--EXPECTF--
32-
Fatal error: Maximum call stack size of 32768 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached during compilation. Try reducing function size in %s on line %d
33-
%A
35+
Fatal error: Maximum call stack size of %d bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached during compilation. Try reducing function size in %s on line %d

0 commit comments

Comments
 (0)