xref: /PHP-7.4/ext/phar/tests/phpinfo_001.phpt (revision 3f96f01e)
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===DONE===
23--EXPECTF--
24%aPhar
25
26Phar: PHP Archive support => enabled
27Phar API version => 1.1.1
28Phar-based phar archives => enabled
29Tar-based phar archives => enabled
30ZIP-based phar archives => enabled
31gzip compression => enabled
32bzip2 compression => enabled
33OpenSSL support => disabled (install ext/openssl)
34
35
36Phar based on pear/PHP_Archive, original concept by Davey Shafik.
37Phar fully realized by Gregory Beaver and Marcus Boerger.
38Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
39Directive => Local Value => Master Value
40phar.cache_list => no value => no value
41phar.readonly => Off => Off
42phar.require_hash => Off => Off
43%a
44Phar
45
46Phar: PHP Archive support => enabled
47Phar API version => 1.1.1
48Phar-based phar archives => enabled
49Tar-based phar archives => enabled
50ZIP-based phar archives => enabled
51gzip compression => enabled
52bzip2 compression => enabled
53OpenSSL support => disabled (install ext/openssl)
54
55
56Phar based on pear/PHP_Archive, original concept by Davey Shafik.
57Phar fully realized by Gregory Beaver and Marcus Boerger.
58Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
59Directive => Local Value => Master Value
60phar.cache_list => no value => no value
61phar.readonly => On => Off
62phar.require_hash => On => Off
63%a
64===DONE===
65