mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
add missing test
This commit is contained in:
parent
01d1074f51
commit
3c48633a8f
1 changed files with 23 additions and 0 deletions
23
ext/phar/tests/tar/tar_nohash.phpt
Normal file
23
ext/phar/tests/tar/tar_nohash.phpt
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--TEST--
|
||||||
|
Phar: tar archive, require_hash=1, should not error out
|
||||||
|
--SKIPIF--
|
||||||
|
<?php if (!extension_loaded('phar')) die('skip'); ?>
|
||||||
|
<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
|
||||||
|
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
|
||||||
|
--INI--
|
||||||
|
phar.readonly=1
|
||||||
|
phar.require_hash=1
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
try {
|
||||||
|
$phar = new PharData(dirname(__FILE__) . '/files/Net_URL-1.0.15.tgz');
|
||||||
|
var_dump($phar->getStub());
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo $e->getMessage()."\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
===DONE===
|
||||||
|
--EXPECT--
|
||||||
|
string(0) ""
|
||||||
|
===DONE===
|
Loading…
Add table
Add a link
Reference in a new issue