1--TEST-- 2Don't add array value type is key type is illegal 3--EXTENSIONS-- 4opcache 5--FILE-- 6<?php 7 8function test(?\SplObjectStorage $definitions = null) { 9 $argument = new stdClass; 10 $definitions[$argument] = 1; 11 $definitions[$argument] += 1; 12 $argument = []; 13 $definitions[$argument] = 1; 14 $definitions[$argument] += 1; 15} 16function test2() { 17 $a[[]] = $undef; 18} 19function test3() { 20 foreach (range(0, $undef) as $v) { } 21} 22function test4() { 23 var_dump(range(0, ~$u)); 24} 25 26?> 27===DONE=== 28--EXPECT-- 29===DONE=== 30