Annotation of embedaddon/php/ext/phar/tests/phpinfo_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: phpinfo display 1
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: --FILE--
16: <?php
17: phpinfo(INFO_MODULES);
18: ini_set('phar.readonly',1);
19: ini_set('phar.require_hash',1);
20: phpinfo(INFO_MODULES);
21: ?>
22: ===DONE===
23: --EXPECTF--
24: %aPhar
25:
26: Phar: PHP Archive support => enabled
27: Phar EXT version => %s
28: Phar API version => 1.1.1
29: SVN revision => %sRevision: %s $
30: Phar-based phar archives => enabled
31: Tar-based phar archives => enabled
32: ZIP-based phar archives => enabled
33: gzip compression => enabled
34: bzip2 compression => enabled
35: OpenSSL support => disabled (install ext/openssl)
36:
37:
38: Phar based on pear/PHP_Archive, original concept by Davey Shafik.
39: Phar fully realized by Gregory Beaver and Marcus Boerger.
40: Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
41: Directive => Local Value => Master Value
42: phar.cache_list => no value => no value
43: phar.readonly => Off => Off
44: phar.require_hash => Off => Off
45: %a
46: Phar
47:
48: Phar: PHP Archive support => enabled
49: Phar EXT version => %s
50: Phar API version => 1.1.1
51: SVN revision => %sRevision: %s $
52: Phar-based phar archives => enabled
53: Tar-based phar archives => enabled
54: ZIP-based phar archives => enabled
55: gzip compression => enabled
56: bzip2 compression => enabled
57: OpenSSL support => disabled (install ext/openssl)
58:
59:
60: Phar based on pear/PHP_Archive, original concept by Davey Shafik.
61: Phar fully realized by Gregory Beaver and Marcus Boerger.
62: Portions of tar implementation Copyright (c) %d-%d Tim Kientzle.
63: Directive => Local Value => Master Value
64: phar.cache_list => no value => no value
65: phar.readonly => On => Off
66: phar.require_hash => On => Off
67: %a
68: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>