xref: /PHP-8.2/ext/phar/tests/tar/tar_nohash.phpt (revision 74859783)
1--TEST--
2Phar: tar archive, require_hash=1, should not error out
3--EXTENSIONS--
4phar
5zlib
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