1--TEST--
2Phar: tar archive, require_hash=1, OpenSSL hash
3--SKIPIF--
4<?php if (!extension_loaded('phar')) die('skip'); ?>
5<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
6<?php if (!extension_loaded("openssl")) die("skip openssl not available"); ?>
7--INI--
8phar.readonly=1
9phar.require_hash=1
10--FILE--
11<?php
12try {
13    $phar = new PharData(__DIR__ . '/files/P1-1.0.0.tgz');
14} catch (Exception $e) {
15    echo $e->getMessage()."\n";
16}
17
18?>
19===DONE===
20--EXPECT--
21===DONE===
22