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

From: Date: Sun, 01 Nov 2026 11:52:00 +0000
Subject: [php-src] master: Merge branch 'PHP-8.6'
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143132@lists.php.net to get a copy of this message
Author: ndossche (ndossche) Date: 2026-11-01T12:51:50+01:00 Commit: https://github.com/php/php-src/commit/58c95e35d7c7408da6b8bf6a26caf203b580d0d6 Raw diff: https://github.com/php/php-src/commit/58c95e35d7c7408da6b8bf6a26caf203b580d0d6.diff Merge branch 'PHP-8.6' * PHP-8.6: Fix merge in ext/phar Changed paths: M ext/phar/phar_object.c Diff: diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 00486b1265ce..fdf5a3914bee 100644 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -3494,8 +3494,8 @@ PHP_METHOD(Phar, copy) newentry.filename = zend_string_copy(new_file); newentry.fp_refcount = 0; - if (newentry.link) { - newentry.link = estrdup(newentry.link); + if (newentry.symlink) { + newentry.symlink = zend_string_copy(newentry.symlink); } if (newentry.tmp) { @@ -3505,8 +3505,8 @@ PHP_METHOD(Phar, copy) if (oldentry->fp_type != PHAR_FP) { if (FAILURE == phar_copy_entry_fp(oldentry, &newentry, &error)) { zend_string_release(newentry.filename); - if (newentry.link) { - efree(newentry.link); + if (newentry.symlink) { + zend_string_release(newentry.symlink); } if (newentry.tmp) { efree(newentry.tmp);

« previous php.cvs (#143132) next »