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<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> 42Phar 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> 66Phar 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=== 76