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("spl")) die("skip SPL not available"); ?> 6<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?> 7<?php if (!extension_loaded("openssl")) die("skip openssl not available"); ?> 8--INI-- 9phar.readonly=1 10phar.require_hash=1 11--FILE-- 12<?php 13try { 14 $phar = new PharData(dirname(__FILE__) . '/files/P1-1.0.0.tgz'); 15} catch (Exception $e) { 16 echo $e->getMessage()."\n"; 17} 18 19?> 20===DONE=== 21--EXPECT-- 22===DONE=== 23