diff options
author | Greg Beaver <cellog@php.net> | 2008-01-09 08:45:00 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-01-09 08:45:00 +0000 |
commit | 21ab2ca8e99f8ddea0d56ff7140f39d946d50c5c (patch) | |
tree | 7c5b5d7394a9b0b22ac4a115dc8b2946def77706 /ext/phar/tests/tar | |
parent | 38a9da107140c02bd38b50dd2fec6eb2bad88fa7 (diff) | |
download | php-git-21ab2ca8e99f8ddea0d56ff7140f39d946d50c5c.tar.gz |
fix gzipped phars in phar file format, add test
Diffstat (limited to 'ext/phar/tests/tar')
-rw-r--r-- | ext/phar/tests/tar/tar_gzip.phpt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/phar/tests/tar/tar_gzip.phpt b/ext/phar/tests/tar/tar_gzip.phpt index 730adc6807..9fccc79226 100644 --- a/ext/phar/tests/tar/tar_gzip.phpt +++ b/ext/phar/tests/tar/tar_gzip.phpt @@ -4,6 +4,7 @@ Phar: tar-based phar, gzipped tar <?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"); ?> +<?php if (version_compare(phpversion(), '5.2.6', '<')) die("skip zlib is buggy in PHP < 5.2.6"); ?> --INI-- phar.readonly=0 --FILE-- @@ -33,9 +34,8 @@ $a = new Phar($fname); $a['test'] = 'hi'; copy($fname, $fname2); $b = new Phar($fname2); -var_dump($b->isCompressed == Phar::GZ); - -__HALT_COMPILER(); +var_dump($b->isTar()); +var_dump($b->isCompressed() == Phar::GZ); ?> ===DONE=== --CLEAN-- @@ -47,4 +47,5 @@ __HALT_COMPILER(); string(9) "it worked" string(%d) "phar://%star_gzip.phar/tar_004.php" bool(true) +bool(true) ===DONE===
\ No newline at end of file |