mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
31 lines
365 B
PHP
31 lines
365 B
PHP
--TEST--
|
|
Bug #74980 (Narrowing occurred during type inference)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
|
|
class A
|
|
{
|
|
|
|
static function foo()
|
|
{
|
|
while ($undef) {
|
|
$arr[][] = NULL;
|
|
}
|
|
|
|
foreach ($arr as $a) {
|
|
bar($a + []);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
echo "okey";
|
|
?>
|
|
--EXPECT--
|
|
okey
|