xref: /PHP-7.3/ext/opcache/tests/bug75681.phpt (revision 19d0c5dc)
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--SKIPIF--
8<?php require_once('skipif.inc'); ?>
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