Skip to content

Commit fee4e18

Browse files
authored
mbstring: Avoid pointless refcounted copy (php#20325)
These scalars can use the ZVAL_COPY_VALUE variant instead of ZVAL_COPY because they don't need refcounting.
1 parent 23162d8 commit fee4e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ MBSTRING_API HashTable *php_mb_convert_encoding_recursive(HashTable *input, cons
27882788
case IS_FALSE:
27892789
case IS_LONG:
27902790
case IS_DOUBLE:
2791-
ZVAL_COPY(&entry_tmp, entry);
2791+
ZVAL_COPY_VALUE(&entry_tmp, entry);
27922792
break;
27932793
case IS_ARRAY:
27942794
chash = php_mb_convert_encoding_recursive(

0 commit comments

Comments
 (0)