mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
76 lines
3.7 KiB
PHP
76 lines
3.7 KiB
PHP
--TEST--
|
|
Phar: phpinfo display 4
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("phar")) die("skip");
|
|
if (!extension_loaded("zlib")) die("skip zlib not loaded");
|
|
if (!extension_loaded("bz2")) die("skip bz2 not loaded");
|
|
$arr = Phar::getSupportedSignatures();
|
|
if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
|
|
?>
|
|
--INI--
|
|
phar.readonly=0
|
|
phar.require_hash=0
|
|
phar.cache_list=
|
|
--POST--
|
|
a=b
|
|
--FILE--
|
|
<?php
|
|
phpinfo(INFO_MODULES);
|
|
ini_set('phar.readonly',1);
|
|
ini_set('phar.require_hash',1);
|
|
phpinfo(INFO_MODULES);
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
%a<br />
|
|
<h2><a name="module_Phar">Phar</a></h2>
|
|
<table border="0" cellpadding="3" width="600">
|
|
<tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
|
|
<tr><td class="e">Phar EXT version </td><td class="v">%s </td></tr>
|
|
<tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
|
|
<tr><td class="e">CVS revision </td><td class="v">%sRevision: %s $ </td></tr>
|
|
<tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
|
|
</table><br />
|
|
<table border="0" cellpadding="3" width="600">
|
|
<tr class="v"><td>
|
|
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>
|
|
</table><br />
|
|
<table border="0" cellpadding="3" width="600">
|
|
<tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
|
|
<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>
|
|
<tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr>
|
|
<tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr>
|
|
</table><br />
|
|
%a<br />
|
|
<h2><a name="module_Phar">Phar</a></h2>
|
|
<table border="0" cellpadding="3" width="600">
|
|
<tr class="h"><th>Phar: PHP Archive support</th><th>enabled</th></tr>
|
|
<tr><td class="e">Phar EXT version </td><td class="v">%s </td></tr>
|
|
<tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
|
|
<tr><td class="e">CVS revision </td><td class="v">%sRevision: %s $ </td></tr>
|
|
<tr><td class="e">Phar-based phar archives </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">Tar-based phar archives </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">ZIP-based phar archives </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
|
|
<tr><td class="e">OpenSSL support </td><td class="v">disabled (install ext/openssl) </td></tr>
|
|
</table><br />
|
|
<table border="0" cellpadding="3" width="600">
|
|
<tr class="v"><td>
|
|
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>
|
|
</table><br />
|
|
<table border="0" cellpadding="3" width="600">
|
|
<tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr>
|
|
<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>
|
|
<tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr>
|
|
<tr><td class="e">phar.require_hash</td><td class="v">On</td><td class="v">Off</td></tr>
|
|
</table><br />
|
|
%a<br />
|
|
</div></body></html>===DONE===
|