summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug74980.phpt
blob: 40fd3cd5377fbb0c4eb07b620b5d40e41fc27795 (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