1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
--TEST-- Bug #69537 (__debugInfo with empty string for key gives error) --FILE-- <?php class Foo { public function __debugInfo(){ return ['' => 1]; } } var_dump(new Foo); ?> --EXPECTF-- object(Foo)#%d (%d) { [""]=> int(1) }