005.phpt 489 B

12345678910111213141516171819202122232425262728293031323334
  1. --TEST--
  2. using invalid combinations of cmdline options
  3. --SKIPIF--
  4. <?php
  5. if (substr(PHP_OS, 0, 3) == 'WIN') {
  6. die ("skip not for Windows");
  7. }
  8. include "skipif.inc";
  9. ?>
  10. --FILE--
  11. <?php
  12. include "include.inc";
  13. $php = get_cgi_path();
  14. reset_env_vars();
  15. var_dump(`$php -n -a -f 'wrong'`);
  16. var_dump(`$php -n -f 'wrong' -a`);
  17. echo "Done\n";
  18. ?>
  19. --EXPECT--
  20. string(51) "No input file specified.
  21. Interactive mode enabled
  22. "
  23. string(51) "No input file specified.
  24. Interactive mode enabled
  25. "
  26. Done