xref: /php-src/ext/opcache/tests/jit/gh15903.phpt (revision a360b175)
1--TEST--
2GH-15903 (Core dumped in ext/opcache/jit/ir/ir_ra.c)
3--EXTENSIONS--
4opcache
5--INI--
6opcache.jit=1002
7opcache.jit_buffer_size=64M
8--FILE--
9<?php
10for ($i = 0; $i < 2; ++$i) { //This must run >=2 (increasing the number of elements in the array *2 will not do)
11foreach (array_fill(0, 389, 'x') as &$params) { //Will not trigger <389
12$x[] = new foo;
13}
14}
15?>
16--EXPECTF--
17Fatal error: Uncaught Error: Class "foo" not found in %sgh15903.php:4
18Stack trace:
19#0 {main}
20  thrown in %sh15903.php on line 4
21