xref: /php-src/ext/opcache/tests/bug75681.phpt (revision e9f783fc)
1--TEST--
2Bug #75681: Warning: Narrowing occurred during type inference (specific case)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11
12function foobar()
13{
14    do {
15        foreach ($a as $i => $_) {
16            $a[$i][0] += 1;
17        }
18
19        $a[] = array(0, 0);
20    } while ($x !== false);
21}
22
23?>
24===DONE===
25--EXPECT--
26===DONE===
27