xref: /PHP-8.0/ext/phar/tests/phpinfo_001.phpt (revision a555cc0b)
1--TEST--
2Phar: phpinfo display 1
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=0
13phar.require_hash=0
14phar.cache_list=
15--FILE--
16<?php
17phpinfo(INFO_MODULES);
18ini_set('phar.readonly',1);
19ini_set('phar.require_hash',1);
20phpinfo(INFO_MODULES);
21?>
22--EXPECTF--
23%aPhar
24
25Phar: PHP Archive support => enabled
26Phar API version => 1.1.1
27Phar-based phar archives => enabled
28Tar-based phar archives => enabled
29ZIP-based phar archives => enabled
30gzip compression => enabled
31bzip2 compression => enabled
32OpenSSL support => disabled (install ext/openssl)
33
34
35Phar based on pear/PHP_Archive, original concept by Davey Shafik.
36Phar fully realized by Gregory Beaver and Marcus Boerger.
37Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
38Directive => Local Value => Master Value
39phar.cache_list => no value => no value
40phar.readonly => Off => Off
41phar.require_hash => Off => Off
42%a
43Phar
44
45Phar: PHP Archive support => enabled
46Phar API version => 1.1.1
47Phar-based phar archives => enabled
48Tar-based phar archives => enabled
49ZIP-based phar archives => enabled
50gzip compression => enabled
51bzip2 compression => enabled
52OpenSSL support => disabled (install ext/openssl)
53
54
55Phar based on pear/PHP_Archive, original concept by Davey Shafik.
56Phar fully realized by Gregory Beaver and Marcus Boerger.
57Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
58Directive => Local Value => Master Value
59phar.cache_list => no value => no value
60phar.readonly => On => Off
61phar.require_hash => On => Off
62%a
63