Skip to content

Commit d302ed7

Browse files
committed
resort to the more generally available ZVAL_COPY
1 parent 2e2ac68 commit d302ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack_pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ static inline void msgpack_serialize_object(smart_str *buf, zval *val, HashTable
412412
if (ce && ce->__serialize) {
413413
zval retval, obj;
414414

415-
ZVAL_OBJ_COPY(&obj, Z_OBJ_P(val_noref));
415+
ZVAL_COPY(&obj, val_noref);
416416
zend_call_known_instance_method_with_0_params(Z_OBJCE(obj)->__serialize, Z_OBJ(obj), &retval);
417417

418418
if (!EG(exception)) {

0 commit comments

Comments
 (0)