Commit cf31f5b8916 for php

commit cf31f5b89160f022aac2d2aedfbd89df35affcc6
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date:   Sun Nov 1 12:51:44 2026 +0100

    Fix merge in ext/phar

diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index 00486b1265c..fdf5a3914be 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);