xref: /PHP-7.3/ext/phar/tests/phpinfo_004.phpt (revision 3f96f01e)
1--TEST--
2Phar: phpinfo display 4
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--POST--
16a=b
17--FILE--
18<?php
19phpinfo(INFO_MODULES);
20ini_set('phar.readonly',1);
21ini_set('phar.require_hash',1);
22phpinfo(INFO_MODULES);
23?>
24===DONE===
25--EXPECTF--
26%a
27<h2><a name="module_phar">Phar</a></h2>
28<table>
29<tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
30<tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
31<tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
32<tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
33<tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
34<tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
35<tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
36<tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
37</table>
38<table>
39<tr class="v"><td>
40Phar based on pear/PHP_Archive, original concept by Davey Shafik.<br />Phar fully realized by Gregory Beaver and Marcus Boerger.<br />Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.</td></tr>
41</table>
42<table>
43<tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
44<tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr>
45<tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr>
46<tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr>
47</table>
48%a
49<h2><a name="module_phar">Phar</a></h2>
50<table>
51<tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
52<tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
53<tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
54<tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
55<tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
56<tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
57<tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
58<tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
59</table>
60<table>
61<tr class="v"><td>
62Phar based on pear/PHP_Archive, original concept by Davey Shafik.<br />Phar fully realized by Gregory Beaver and Marcus Boerger.<br />Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.</td></tr>
63</table>
64<table>
65<tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
66<tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr>
67<tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr>
68<tr><td class="e">phar.require_hash</td><td class="v">On</td><td class="v">Off</td></tr>
69</table>
70%a
71</div></body></html>===DONE===
72