summaryrefslogtreecommitdiff
path: root/Zend/zend_objects_API.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-11-21 13:13:28 +0300
committerDmitry Stogov <dmitry@zend.com>2016-11-21 13:13:28 +0300
commit51f59739b647613f748f0866501f8c3b86427d2f (patch)
tree5366460efe99f099f5055079938fc9598c7d81f2 /Zend/zend_objects_API.h
parent7051eec7b5014d5afcc6b10a240b560b6c0e515c (diff)
downloadphp-git-51f59739b647613f748f0866501f8c3b86427d2f.tar.gz
Turn function into inline
Diffstat (limited to 'Zend/zend_objects_API.h')
-rw-r--r--Zend/zend_objects_API.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zend/zend_objects_API.h b/Zend/zend_objects_API.h
index 7dfad70fbc..ac4485fea3 100644
--- a/Zend/zend_objects_API.h
+++ b/Zend/zend_objects_API.h
@@ -61,7 +61,12 @@ ZEND_API void zend_objects_store_free(zend_object *object);
/* See comment in zend_objects_API.c before you use this */
ZEND_API void zend_object_store_set_object(zval *zobject, zend_object *object);
-ZEND_API void zend_object_store_ctor_failed(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;
+}
ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects);