From: Greg Beaver Date: Sun, 1 Jan 2006 22:10:21 +0000 (+0000) Subject: test needed tweaking to pass now X-Git-Tag: RELEASE_1_0_4~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1481746e1379600c77946ba8d9e8c50960b1482e;p=php test needed tweaking to pass now --- diff --git a/ext/phar/tests/016.phpt b/ext/phar/tests/016.phpt index 7a51bbe23f..7ffe5b0e19 100644 --- a/ext/phar/tests/016.phpt +++ b/ext/phar/tests/016.phpt @@ -1,5 +1,5 @@ --TEST-- -PHP_Archive::mapPhar valid file (gzipped) +PHP_Archive::mapPhar invalid file (gzipped file length is too short) --SKIPIF-- @@ -12,7 +12,7 @@ PHP_Archive::mapPhar('hio', true); __HALT_COMPILER(); ?>"; // file length is too short $manifest = pack('V', 1) . 'a' . pack('VVVV', 1, time(), 0, 9); -$file .= pack('VV', strlen($manifest) + 4, 1) . $manifest . pack('VV', crc32('a'), 1) . chr(75) . chr(4) . chr(0); // 'a' gzdeflated +$file .= pack('VV', strlen($manifest) + 4, 1) . $manifest . pack('VV', crc32('a'), 1) . chr(0) . chr(4) . chr(0); // 'a' gzdeflated file_put_contents(dirname(__FILE__) . '/008_phar.php', $file); include dirname(__FILE__) . '/008_phar.php'; echo file_get_contents('phar://hio/a');