Skip to content

Commit bbf8786

Browse files
committed
The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed
Call zval_ptr_dtor_nogc() directly instead
1 parent 621c1e9 commit bbf8786

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

msgpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ PHP_MSGPACK_API int php_msgpack_unserialize(zval *return_value, char *str, size_
280280
default:
281281
MSGPACK_WARNING("[msgpack] (%s) Unknown result", __FUNCTION__);
282282
}
283-
zval_dtor(return_value);
283+
zval_ptr_dtor_nogc(return_value);
284284
msgpack_unserialize_var_destroy(&mp.user.var_hash, 1);
285285
RETVAL_FALSE;
286286
return FAILURE;

msgpack_unpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static zend_class_entry* msgpack_unserialize_class(zval **container, zend_string
329329
}
330330
}
331331
ZEND_HASH_FOREACH_END();
332-
zval_dtor(&container_tmp);
332+
zval_ptr_dtor_nogc(&container_tmp);
333333
}
334334

335335
}

0 commit comments

Comments
 (0)