summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-01-22 15:57:00 +0300
committerDmitry Stogov <dmitry@zend.com>2018-01-22 15:57:00 +0300
commitb3e22da745957a6d67bc604268184eb8ba161a08 (patch)
treedcfe51e8cf081019136cf0b8bdb2ad6983e9c873 /Zend/zend_object_handlers.c
parent6fb5568b2de6430955936235e29413c1de4c6253 (diff)
downloadphp-git-b3e22da745957a6d67bc604268184eb8ba161a08.tar.gz
Use OBJ_FLAGS() macro to access object flags (even if they are currently stored together with GC_FLAGS)
Diffstat (limited to 'Zend/zend_object_handlers.c')
-rw-r--r--Zend/zend_object_handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index 5eef84d885..2a029ebfdd 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -495,7 +495,7 @@ ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *membe
zval *zv;
uint32_t *ptr;
- ZEND_ASSERT(GC_FLAGS(zobj) & IS_OBJ_USE_GUARDS);
+ ZEND_ASSERT(OBJ_FLAGS(zobj) & IS_OBJ_USE_GUARDS);
zv = zobj->properties_table + zobj->ce->default_properties_count;
if (EXPECTED(Z_TYPE_P(zv) == IS_STRING)) {
zend_string *str = Z_STR_P(zv);
@@ -526,7 +526,7 @@ ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *membe
}
} else {
ZEND_ASSERT(Z_TYPE_P(zv) == IS_UNDEF);
- GC_FLAGS(zobj) |= IS_OBJ_HAS_GUARDS;
+ OBJ_FLAGS(zobj) |= IS_OBJ_HAS_GUARDS;
ZVAL_STR_COPY(zv, member);
zv->u2.property_guard = 0;
return &zv->u2.property_guard;