mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Add test for GH-15903
This commit is contained in:
parent
9cb48c8fa1
commit
a360b1757e
1 changed files with 20 additions and 0 deletions
20
ext/opcache/tests/jit/gh15903.phpt
Normal file
20
ext/opcache/tests/jit/gh15903.phpt
Normal file
|
@ -0,0 +1,20 @@
|
|||
--TEST--
|
||||
GH-15903 (Core dumped in ext/opcache/jit/ir/ir_ra.c)
|
||||
--EXTENSIONS--
|
||||
opcache
|
||||
--INI--
|
||||
opcache.jit=1002
|
||||
opcache.jit_buffer_size=64M
|
||||
--FILE--
|
||||
<?php
|
||||
for ($i = 0; $i < 2; ++$i) { //This must run >=2 (increasing the number of elements in the array *2 will not do)
|
||||
foreach (array_fill(0, 389, 'x') as &$params) { //Will not trigger <389
|
||||
$x[] = new foo;
|
||||
}
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Uncaught Error: Class "foo" not found in %sgh15903.php:4
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in %sh15903.php on line 4
|
Loading…
Add table
Add a link
Reference in a new issue