Skip to content

Commit 1cb5c90

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ext/opcache/tests/jit/gh14361.phpt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ if (!function_exists('zend_test_zend_call_stack_get')) die("skip zend_test_zend_
88
zend_test
99
opcache
1010
--INI--
11-
zend.max_allowed_stack_size=64K
11+
error_reporting=E_COMPILE_ERROR
12+
zend.max_allowed_stack_size=128K
1213
opcache.enable=1
1314
opcache.enable_cli=1
1415
opcache.jit=tracing
16+
opcache.jit_buffer_size=64M
1517
opcache.optimization_level=0x000000a0
1618
--FILE--
1719
<?php
1820
$tmp = fopen(__DIR__."/gh14361_tmp.php", "w");
1921
fwrite($tmp, '<?php ');
20-
for ($i = 0; $i < 10000; $i++) {
22+
for ($i = 0; $i < 70000; $i++) {
2123
fwrite($tmp, 'if (@((0) == (0)) !== (true)) { $f++; }');
2224
}
2325
fclose($tmp);
@@ -29,5 +31,4 @@ include __DIR__."/gh14361_tmp.php";
2931
@unlink(__DIR__."/gh14361_tmp.php");
3032
?>
3133
--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
34+
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)