xref: /PHP-8.0/ext/opcache/tests/bug72762.phpt (revision 75bc3446)
1--TEST--
2Bug #72762: Infinite loop while parsing a file with opcache enabled
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8class foo
9{
10    function bar()
11    {
12        $b = array();
13
14        foreach ($a as $a) {
15            foreach ($b as $k => $v) {
16            }
17            $b[$k] = $v;
18        }
19    }
20}
21
22?>
23===DONE===
24--EXPECT--
25===DONE===
26