xref: /PHP-7.3/ext/phar/tests/tar/tar_nohash.phpt (revision 84488d92)
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("zlib")) die("skip zlib not available"); ?>
6--INI--
7phar.readonly=1
8phar.require_hash=1
9--FILE--
10<?php
11try {
12	$phar = new PharData(dirname(__FILE__) . '/files/Net_URL-1.0.15.tgz');
13	var_dump($phar->getStub());
14} catch (Exception $e) {
15	echo $e->getMessage()."\n";
16}
17
18?>
19===DONE===
20--EXPECT--
21string(0) ""
22===DONE===
23