📄 Viewing: bug75681.phpt

--TEST--
Bug #75681: Warning: Narrowing occurred during type inference (specific case)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

function foobar()
{
    do {
        foreach ($a as $i => $_) {
            $a[$i][0] += 1;
        }

        $a[] = array(0, 0);
    } while ($x !== false);
}

?>
===DONE===
--EXPECT--
===DONE===

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/ext/opcache/tests