You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
580 B

20 years ago
20 years ago
20 years ago
20 years ago
20 years ago
20 years ago
20 years ago
19 years ago
20 years ago
  1. --TEST--
  2. show information about function
  3. --SKIPIF--
  4. <?php
  5. include "skipif.inc";
  6. if (!extension_loaded("reflection")) {
  7. die("skip");
  8. }
  9. ?>
  10. --FILE--
  11. <?php
  12. $php = getenv('TEST_PHP_EXECUTABLE');
  13. var_dump(`$php -n --rf unknown`);
  14. var_dump(`$php -n --rf echo`);
  15. var_dump(`$php -n --rf phpinfo`);
  16. echo "Done\n";
  17. ?>
  18. --EXPECTF--
  19. string(45) "Exception: Function unknown() does not exist
  20. "
  21. string(42) "Exception: Function echo() does not exist
  22. "
  23. string(119) "Function [ <internal:standard> function phpinfo ] {
  24. - Parameters [1] {
  25. Parameter #0 [ <optional> $what ]
  26. }
  27. }
  28. "
  29. Done