|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-05-06 22:21 UTC] thenewherobrinex at gmail dot com
-PHP Version: 7.2.7
+PHP Version: 7.3.5
[2019-05-06 22:21 UTC] thenewherobrinex at gmail dot com
[2020-01-26 14:07 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2020-01-26 14:07 UTC] cmb@php.net
[2020-01-28 09:41 UTC] cmb@php.net
[2020-01-28 09:41 UTC] cmb@php.net
-Status: Verified
+Status: Closed
[2020-01-28 09:42 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 05:00:01 2025 UTC |
Description: ------------ PharFileInfo::decompress marks the file in the phar as not compressed but when you extract the file from the phar it will be compressed. Test script: --------------- <?php file_put_contents("test.txt", "This is a test file."); $phar = new Phar("test.phar"); $phar->addFile("test.txt"); $file = $phar["test.txt"]; var_dump($file->compress(Phar::GZ)); //true (success) var_dump($file->isCompressed()); //true (the file is compressed) var_dump($file->decompress()); //true (success) var_dump($file->isCompressed()); //false (the file should not be compressed anymore) var_dump($phar->extractTo("test")); //true (success but the extracted file in the folder is compressed)