mirror of
https://github.com/php/php-src.git
synced 2026-04-11 18:13:00 +02:00
Fixed refcounting
This commit is contained in:
@@ -228,7 +228,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop
|
||||
if (Z_TYPE_P(expr) == IS_REFERENCE) {
|
||||
expr = Z_REFVAL_P(expr);
|
||||
if (Z_TYPE_P(expr) == IS_STRING) {
|
||||
ZVAL_STR(expr_copy, Z_STR_P(expr));
|
||||
ZVAL_STR(expr_copy, STR_COPY(Z_STR_P(expr)));
|
||||
*use_copy = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user