ReflectionExtension_bug66218.phpt 408 B

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