1--TEST-- 2Phar: phpinfo display 2 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=1 13phar.require_hash=1 14phar.cache_list= 15--FILE-- 16<?php 17phpinfo(INFO_MODULES); 18?> 19===DONE=== 20--EXPECTF-- 21%a 22Phar 23 24Phar: PHP Archive support => enabled 25Phar API version => 1.1.1 26Phar-based phar archives => enabled 27Tar-based phar archives => enabled 28ZIP-based phar archives => enabled 29gzip compression => enabled 30bzip2 compression => enabled 31OpenSSL support => disabled (install ext/openssl) 32 33 34Phar based on pear/PHP_Archive, original concept by Davey Shafik. 35Phar fully realized by Gregory Beaver and Marcus Boerger. 36Portions of tar implementation Copyright (c) %d-%d Tim Kientzle. 37Directive => Local Value => Master Value 38phar.cache_list => no value => no value 39phar.readonly => On => On 40phar.require_hash => On => On 41%a 42===DONE=== 43