Annotation of embedaddon/php/ext/phar/tests/phpinfo_004.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: phpinfo display 4
3: --SKIPIF--
4: <?php
5: if (!extension_loaded("phar")) die("skip");
6: if (!extension_loaded("zlib")) die("skip zlib not loaded");
7: if (!extension_loaded("bz2")) die("skip bz2 not loaded");
8: $arr = Phar::getSupportedSignatures();
9: if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
10: ?>
11: --INI--
12: phar.readonly=0
13: phar.require_hash=0
14: phar.cache_list=
15: --POST--
16: a=b
17: --FILE--
18: <?php
19: phpinfo(INFO_MODULES);
20: ini_set('phar.readonly',1);
21: ini_set('phar.require_hash',1);
22: phpinfo(INFO_MODULES);
23: ?>
24: ===DONE===
25: --EXPECTF--
26: %a<br />
27: <h2><a name="module_Phar">Phar</a></h2>
28: <table border="0" cellpadding="3" width="600">
29: <tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
30: <tr><td class="e">Phar EXT version </td><td class="v">%s </td></tr>
31: <tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
32: <tr><td class="e">SVN revision </td><td class="v">%sRevision: %s $ </td></tr>
33: <tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
34: <tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
35: <tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
36: <tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
37: <tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
38: <tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
39: </table><br />
40: <table border="0" cellpadding="3" width="600">
41: <tr class="v"><td>
42: Phar 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>
43: </table><br />
44: <table border="0" cellpadding="3" width="600">
45: <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
46: <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>
47: <tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr>
48: <tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr>
49: </table><br />
50: %a<br />
51: <h2><a name="module_Phar">Phar</a></h2>
52: <table border="0" cellpadding="3" width="600">
53: <tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
54: <tr><td class="e">Phar EXT version </td><td class="v">%s </td></tr>
55: <tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
56: <tr><td class="e">SVN revision </td><td class="v">%sRevision: %s $ </td></tr>
57: <tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
58: <tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
59: <tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
60: <tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
61: <tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
62: <tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
63: </table><br />
64: <table border="0" cellpadding="3" width="600">
65: <tr class="v"><td>
66: Phar 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>
67: </table><br />
68: <table border="0" cellpadding="3" width="600">
69: <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
70: <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>
71: <tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr>
72: <tr><td class="e">phar.require_hash</td><td class="v">On</td><td class="v">Off</td></tr>
73: </table><br />
74: %a<br />
75: </div></body></html>===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>