|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-22 18:30 UTC] greg at chiaraquartet dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ Although the compression tests phar_bz2.phpt and phar_gzip.phpt both pass, they actually test the PHP version of phar creation/compression and not the C version. Tar works fine (both Phar and PharData). NB this is with 5_3, but there's no option for that :) Reproduce code: --------------- <?php $fname = dirname(__FILE__) . '/myphar.phar'; $phar = new Phar($fname); $phar['index.php'] = '<?php echo "hello world\n"; ?>'; $phar['bulk.txt'] = str_repeat('a', 8000); $phar->compressAllFilesGZ(); var_dump($phar->isCompressed()); ?> Expected result: ---------------- int(4096) Actual result: -------------- bool(false)