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