xref: /PHP-8.1/ext/phar/tests/phpinfo_001.phpt (revision 74859783)
1--TEST--
2Phar: phpinfo display 1
3--EXTENSIONS--
4phar
5zlib
6bz2
7--SKIPIF--
8<?php
9$arr = Phar::getSupportedSignatures();
10if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
11?>
12--INI--
13phar.readonly=0
14phar.require_hash=0
15phar.cache_list=
16--FILE--
17<?php
18phpinfo(INFO_MODULES);
19ini_set('phar.readonly',1);
20ini_set('phar.require_hash',1);
21phpinfo(INFO_MODULES);
22?>
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