xref: /PHP-5.6/ext/phar/tests/tar/tar_nohash.phpt (revision 475cf4d2)
1--TEST--
2Phar: 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--
8phar.readonly=1
9phar.require_hash=1
10--FILE--
11<?php
12try {
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--
22string(0) ""
23===DONE===
24