[php-src] master: Merge branch 'PHP-8.4' into PHP-8.5
| From: | Weilin Du | Date: | Fri, 30 Oct 2026 19:10:42 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.4' into PHP-8.5 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143026@lists.php.net to get a copy of this message | ||
Author: Weilin Du (LamentXU123)
Date: 2026-10-31T03:10:12+08:00
Commit: https://github.com/php/php-src/commit/2a326cad23211bfb6138e965e417d6cd5aa870b9
Raw diff: https://github.com/php/php-src/commit/2a326cad23211bfb6138e965e417d6cd5aa870b9.diff
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
ext/phar: Fix repeated compression with the same algorithm
Changed paths:
M ext/phar/phar_object.c
Diff:
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index 9551003edadd..e9f35dfd050c 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -3161,7 +3161,7 @@ static int phar_set_compression(zval *zv, void *argument) /* {{{ */
phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv);
uint32_t compress = *(uint32_t *)argument;
- if (entry->is_deleted) {
+ if (entry->is_deleted || (entry->flags & PHAR_ENT_COMPRESSION_MASK) == compress) {
return ZEND_HASH_APPLY_KEEP;
}