1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/ext/opcache/tests/bug74980.phpt

31 lines
340 B
PHP

--TEST--
Bug #74980 (Narrowing occurred during type inference)
--INI--
opcache.enable=1
opcache.enable_cli=1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class A
{
static function foo()
{
while ($undef) {
$arr[][] = NULL;
}
foreach ($arr as $a) {
bar($a + []);
}
}
}
echo "okey";
?>
--EXPECT--
okey