1--TEST-- 2ReflectionObject:getProperties() issues invalid reads when it get_properties returns a hash table with (inaccessible) dynamic numeric properties 3--FILE-- 4<?php 5$x = new ArrayObject(); 6$x[0] = 'test string 2'; 7$x['test'] = 'test string 3'; 8$reflObj = new ReflectionObject($x); 9print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC)); 10 11$x = (object)array("a", "oo" => "b"); 12$reflObj = new ReflectionObject($x); 13print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC)); 14?> 15--EXPECT-- 16Array 17( 18) 19Array 20( 21 [0] => ReflectionProperty Object 22 ( 23 [name] => 0 24 [class] => stdClass 25 ) 26 27 [1] => ReflectionProperty Object 28 ( 29 [name] => oo 30 [class] => stdClass 31 ) 32 33) 34