[php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6

From: Date: Fri, 30 Oct 2026 19:10:43 +0000
Subject: [php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143027@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-10-31T03:10:13+08:00 Commit: https://github.com/php/php-src/commit/27563131578446d679aeb430f25c3dd83b2a46db Raw diff: https://github.com/php/php-src/commit/27563131578446d679aeb430f25c3dd83b2a46db.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: 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 d43dd4ca4f00..f0cbe518fbb8 100644 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -3095,7 +3095,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; }

« previous php.cvs (#143027) next »