mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user