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