summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug74980.phpt
blob: df77206d7b2f582f725ccf2f7dfe3dbae83adf49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--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