phpinfo_003.phpt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --TEST--
  2. Phar: phpinfo display 3
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded("phar")) die("skip");
  6. if (extension_loaded("zlib")) die("skip zlib loaded");
  7. if (extension_loaded("bz2")) die("skip bz2 loaded");
  8. $arr = Phar::getSupportedSignatures();
  9. if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
  10. ?>
  11. --INI--
  12. phar.readonly=1
  13. phar.require_hash=1
  14. phar.cache_list=
  15. --FILE--
  16. <?php
  17. phpinfo(INFO_MODULES);
  18. ?>
  19. ===DONE===
  20. --EXPECTF--
  21. %a
  22. Phar
  23. Phar: PHP Archive support => enabled
  24. Phar API version => 1.1.1
  25. Phar-based phar archives => enabled
  26. Tar-based phar archives => enabled
  27. ZIP-based phar archives => enabled
  28. gzip compression => disabled (install ext/zlib)
  29. bzip2 compression => disabled (install ext/bz2)
  30. OpenSSL support => disabled (install ext/openssl)
  31. Phar based on pear/PHP_Archive, original concept by Davey Shafik.
  32. Phar fully realized by Gregory Beaver and Marcus Boerger.
  33. Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
  34. Directive => Local Value => Master Value
  35. phar.cache_list => no value => no value
  36. phar.readonly => On => On
  37. phar.require_hash => On => On
  38. %a
  39. ===DONE===