/hphp/test/zend/bad/ext/reflection/tests/bug61388.php
PHP | 10 lines | 9 code | 1 blank | 0 comment | 0 complexity | f41044ffa3779fb71aa321a1c68a6525 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?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));