019.phpt 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. CLI php -i
  3. --SKIPIF--
  4. <?php
  5. include "skipif.inc";
  6. if (substr(PHP_OS, 0, 3) == 'WIN') {
  7. die ("skip not for Windows");
  8. }
  9. ?>
  10. --FILE--
  11. <?php
  12. $php = getenv('TEST_PHP_EXECUTABLE');
  13. echo `"$php" -n -i`;
  14. echo "\nDone\n";
  15. ?>
  16. --EXPECTF--
  17. phpinfo()
  18. PHP Version => %s
  19. %a
  20. PHP License
  21. This program is free software; you can redistribute it and/or modify
  22. it under the terms of the PHP License as published by the PHP Group
  23. and included in the distribution in the file: LICENSE
  24. This program is distributed in the hope that it will be useful,
  25. but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27. If you did not receive a copy of the PHP license, or have any
  28. questions about PHP licensing, please contact license@php.net.
  29. Done