009.phpt 435 B

12345678910111213141516171819202122
  1. --TEST--
  2. using invalid combinations of cmdline options
  3. --EXTENSIONS--
  4. readline
  5. --SKIPIF--
  6. <?php include "skipif.inc"; ?>
  7. --FILE--
  8. <?php
  9. $php = getenv('TEST_PHP_EXECUTABLE');
  10. var_dump(`$php -n -a -r "echo hello;"`);
  11. var_dump(`$php -n -r "echo hello;" -a`);
  12. echo "Done\n";
  13. ?>
  14. --EXPECT--
  15. string(57) "Either execute direct code, process stdin or use a file.
  16. "
  17. string(57) "Either execute direct code, process stdin or use a file.
  18. "
  19. Done