Skip to content

Commit 4d9fda9

Browse files
committed
use zval_copy
1 parent 5e42fa9 commit 4d9fda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ zend_bool s_get_apply_fn(php_memc_object_t *intern, zend_string *key, zval *valu
13531353
add_assoc_long (context->return_value, "flags", (zend_long) MEMC_VAL_GET_USER_FLAGS(flags));
13541354
}
13551355
else {
1356-
ZVAL_ZVAL(context->return_value, value, 1, 0);
1356+
ZVAL_COPY(context->return_value, value);
13571357
}
13581358
return 0; /* Stop after one */
13591359
}

0 commit comments

Comments
 (0)