phpinfo_001.phpt 1.8 KB

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