[php-src] PR #25045: Fix GH-8469: Phar::decompressFiles() keeps compressed contents
| From: | paezraphael | Date: | Thu, 29 Oct 2026 23:28:41 +0000 |
| Subject: | [php-src] PR #25045: Fix GH-8469: Phar::decompressFiles() keeps compressed contents | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40073@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25045
Author: paezraphael
Phar::decompressFiles() and Phar::compressFiles() only changed the compression flags of the entries.
phar_flush() then read the entry contents from the archive as they were stored, so the old
compressed bytes were written out as the new contents.
Decompress entries whose compression changes before updating the flags, so phar_flush() writes the
real contents with the new compression.