php-src/ext/opcache/tests/bug74980.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

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