phpinfo_001.phpt 1.6 KB

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