Annotation of embedaddon/php/ext/phar/tests/tar/tar_nohash.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: tar archive, require_hash=1, should not error out
3: --SKIPIF--
4: <?php if (!extension_loaded('phar')) die('skip'); ?>
5: <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6: <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
7: --INI--
8: phar.readonly=1
9: phar.require_hash=1
10: --FILE--
11: <?php
12: try {
13: $phar = new PharData(dirname(__FILE__) . '/files/Net_URL-1.0.15.tgz');
14: var_dump($phar->getStub());
15: } catch (Exception $e) {
16: echo $e->getMessage()."\n";
17: }
18:
19: ?>
20: ===DONE===
21: --EXPECT--
22: string(0) ""
23: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>