bug48757.phpt 373 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #48757 (ReflectionFunction::invoke() parameter issues)
  3. --FILE--
  4. <?php
  5. function test() {
  6. echo "Hello World\n";
  7. }
  8. function another_test($parameter) {
  9. var_dump($parameter);
  10. }
  11. $func = new ReflectionFunction('test');
  12. $func->invoke();
  13. $func = new ReflectionFunction('another_test');
  14. $func->invoke('testing');
  15. ?>
  16. --EXPECT--
  17. Hello World
  18. string(7) "testing"