xref: /PHP-8.1/ext/phar/tests/phpinfo_004.phpt (revision 74859783)
1--TEST--
2Phar: phpinfo display 4
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--POST--
17a=b
18--FILE--
19<?php
20phpinfo(INFO_MODULES);
21ini_set('phar.readonly',1);
22ini_set('phar.require_hash',1);
23phpinfo(INFO_MODULES);
24?>
25===DONE===
26--EXPECTF--
27%a
28<h2><a name="module_phar">Phar</a></h2>
29<table>
30<tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
31<tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
32<tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
33<tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
34<tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
35<tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
36<tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
37<tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
38</table>
39<table>
40<tr class="v"><td>
41Phar 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>
42</table>
43<table>
44<tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
45<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>
46<tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr>
47<tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr>
48</table>
49%a
50<h2><a name="module_phar">Phar</a></h2>
51<table>
52<tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
53<tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
54<tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
55<tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
56<tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
57<tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
58<tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
59<tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
60</table>
61<table>
62<tr class="v"><td>
63Phar 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>
64</table>
65<table>
66<tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
67<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>
68<tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr>
69<tr><td class="e">phar.require_hash</td><td class="v">On</td><td class="v">Off</td></tr>
70</table>
71%a
72</div></body></html>===DONE===
73