xref: /PHP-8.4/ext/opcache/tests/bug72762.phpt (revision e9f783fc)
1--TEST--
2Bug #72762: Infinite loop while parsing a file with opcache enabled
3--EXTENSIONS--
4opcache
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