mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use macros to update specific parts of GC_TYPE_INFO() (direct assignments to GC_TYPE(), GC_FLAGS() and GC_INFO() are prohibited)
This commit is contained in:
@@ -62,7 +62,7 @@ ZEND_API void ZEND_FASTCALL zend_objects_store_del(zend_object *object);
|
||||
/* Called when the ctor was terminated by an exception */
|
||||
static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj)
|
||||
{
|
||||
OBJ_FLAGS(obj) |= IS_OBJ_DESTRUCTOR_CALLED;
|
||||
GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED);
|
||||
}
|
||||
|
||||
#define ZEND_OBJECTS_STORE_HANDLERS 0, zend_object_std_dtor, zend_objects_destroy_object, zend_objects_clone_obj
|
||||
|
||||
Reference in New Issue
Block a user