PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/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
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
  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));