[php-src] master: Merge branch 'PHP-8.6'

From: Date: Fri, 30 Oct 2026 19:10:45 +0000
Subject: [php-src] master: Merge branch 'PHP-8.6'
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143028@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-10-31T03:10:14+08:00 Commit: https://github.com/php/php-src/commit/4a40862aef984129c5a3593ed056c3d56aa6c80c Raw diff: https://github.com/php/php-src/commit/4a40862aef984129c5a3593ed056c3d56aa6c80c.diff Merge branch 'PHP-8.6' * PHP-8.6: 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 (#143028) next »