xref: /PHP-8.0/ext/phar/tests/tar/tar_nohash.phpt (revision f8d79582)
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(__DIR__ . '/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--EXPECT--
20string(0) ""
21