xref: /PHP-5.3/ext/phar/tests/phpinfo_002.phpt (revision fc2ed1b5)
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 EXT version => %s
26Phar API version => 1.1.1
27SVN revision => %sRevision: %s $
28Phar-based phar archives => enabled
29Tar-based phar archives => enabled
30ZIP-based phar archives => enabled
31gzip compression => enabled
32bzip2 compression => enabled
33OpenSSL support => disabled (install ext/openssl)
34
35
36Phar based on pear/PHP_Archive, original concept by Davey Shafik.
37Phar fully realized by Gregory Beaver and Marcus Boerger.
38Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
39Directive => Local Value => Master Value
40phar.cache_list => no value => no value
41phar.readonly => On => On
42phar.require_hash => On => On
43%a
44===DONE===
45