1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/opcache/tests/bug74980.phpt
2020-02-03 22:52:20 +01:00

31 lines
390 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