ReflectionExtension_bug66218.phpt 358 B

12345678910111213141516171819
  1. --TEST--
  2. ReflectionExtension::getFunctions() ##6218 zend_register_functions breaks reflection
  3. --SKIPIF--
  4. <?php
  5. if (!function_exists("dl")) die("skip need dl");
  6. ?>
  7. --FILE--
  8. <?php
  9. $r = new ReflectionExtension('standard');
  10. $t = $r->getFunctions();
  11. var_dump($t['dl']);
  12. ?>
  13. Done
  14. --EXPECTF--
  15. object(ReflectionFunction)#%d (1) {
  16. ["name"]=>
  17. string(2) "dl"
  18. }
  19. Done