mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 03:45:43 +00:00
Fixed refcounting
This commit is contained in:
1 parent
78fc6b3570
commit
bb27b4ac95
1 file changed
+1
-1
+1
-1
@@ -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