Skip to content

Commit 2fae216

Browse files
committed
resort to the more generally available ZVAL_COPY
1 parent eb76548 commit 2fae216

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
@@ -410,7 +410,7 @@ static inline void msgpack_serialize_object(smart_str *buf, zval *val, HashTable
410410
if (ce && ce->__serialize) {
411411
zval retval, obj;
412412

413-
ZVAL_OBJ_COPY(&obj, Z_OBJ_P(val_noref));
413+
ZVAL_COPY(&obj, val_noref);
414414
zend_call_known_instance_method_with_0_params(Z_OBJCE(obj)->__serialize, Z_OBJ(obj), &retval);
415415

416416
if (!EG(exception)) {

0 commit comments

Comments
 (0)