summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-04-30 06:48:47 +0100
committerJoe Watkins <krakjoe@php.net>2016-04-30 06:48:47 +0100
commit9ad40d8d36b3a481ab20f793e34d0d35148c07f5 (patch)
treefc0d7f19711d5de26b78a85a14630b2fad95312f
parent416e22d2bb496da39e95136b1eded64869f10dd0 (diff)
downloadphp-git-9ad40d8d36b3a481ab20f793e34d0d35148c07f5.tar.gz
This function needs to be exported for extensions that implement complex zend objects
-rw-r--r--Zend/zend_object_handlers.c2
-rw-r--r--Zend/zend_object_handlers.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index c74ef7508d..22e81dc009 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -519,7 +519,7 @@ static void zend_property_guard_dtor(zval *el) /* {{{ */ {
}
/* }}} */
-static uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member) /* {{{ */
+ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member) /* {{{ */
{
HashTable *guards;
zval *zv;
diff --git a/Zend/zend_object_handlers.h b/Zend/zend_object_handlers.h
index 319da96f15..2e397093ac 100644
--- a/Zend/zend_object_handlers.h
+++ b/Zend/zend_object_handlers.h
@@ -180,6 +180,8 @@ ZEND_API int zend_check_property_access(zend_object *zobj, zend_string *prop_inf
ZEND_API zend_function *zend_get_call_trampoline_func(zend_class_entry *ce, zend_string *method_name, int is_static);
+ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member);
+
#define zend_free_trampoline(func) do { \
if ((func) == &EG(trampoline)) { \
EG(trampoline).common.function_name = NULL; \