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