/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug61388.phpt
--TEST-- ReflectionObject:getProperties() issues invalid reads when it get_properties returns a hash table with (inaccessible) dynamic numeric properties --FILE-- <?php $x = new ArrayObject(); $x[0] = 'test string 2'; $x['test'] = 'test string 3'; $reflObj = new ReflectionObject($x); print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC)); $x = (object)array("a", "oo" => "b"); $reflObj = new ReflectionObject($x); print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC)); ?> --EXPECT-- Array ( ) Array ( [0] => ReflectionProperty Object ( [name] => 0 [class] => stdClass ) [1] => ReflectionProperty Object ( [name] => oo [class] => stdClass ) )
Copyright ©2k19 -
Hexid
|
Tex7ure