1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

mbstring: Avoid pointless refcounted copy (#20325)

These scalars can use the ZVAL_COPY_VALUE variant instead of ZVAL_COPY
because they don't need refcounting.
This commit is contained in:
Niels Dossche
2025-10-29 17:23:13 +01:00
committed by GitHub
parent 23162d852a
commit fee4e1889f

View File

@@ -2788,7 +2788,7 @@ try_again:
case IS_FALSE:
case IS_LONG:
case IS_DOUBLE:
ZVAL_COPY(&entry_tmp, entry);
ZVAL_COPY_VALUE(&entry_tmp, entry);
break;
case IS_ARRAY:
chash = php_mb_convert_encoding_recursive(