/hphp/test/zend/bad/ext/reflection/tests/bug61388.php

http://github.com/facebook/hiphop-php · PHP · 10 lines · 9 code · 1 blank · 0 comment · 0 complexity · f41044ffa3779fb71aa321a1c68a6525 MD5 · raw file

  1. <?php
  2. $x = new ArrayObject();
  3. $x[0] = 'test string 2';
  4. $x['test'] = 'test string 3';
  5. $reflObj = new ReflectionObject($x);
  6. print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC));
  7. $x = (object)array("a", "oo" => "b");
  8. $reflObj = new ReflectionObject($x);
  9. print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC));