1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use OBJ_FLAGS() macro to access object flags (even if they are currently stored together with GC_FLAGS)

This commit is contained in:
Dmitry Stogov
2018-01-22 15:57:00 +03:00
parent 6fb5568b2d
commit b3e22da745
8 changed files with 29 additions and 27 deletions

View File

@@ -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)
{
GC_FLAGS(obj) |= IS_OBJ_DESTRUCTOR_CALLED;
OBJ_FLAGS(obj) |= IS_OBJ_DESTRUCTOR_CALLED;
}
#define ZEND_OBJECTS_STORE_HANDLERS 0, zend_object_std_dtor, zend_objects_destroy_object, zend_objects_clone_obj