summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-01-13 11:33:00 +0300
committerDmitry Stogov <dmitry@zend.com>2015-01-13 11:33:00 +0300
commit5a24ac88539243e9ce531fb254d89ec2944e580d (patch)
treea711aeea7a2227357c6b64257695461c3fefbb95 /Zend/zend_object_handlers.h
parent58efbf0a922affe880561a226dcbd679300ff938 (diff)
downloadphp-git-5a24ac88539243e9ce531fb254d89ec2944e580d.tar.gz
Improved access to object properties (cache property offset instead of pointer to property_info).
Diffstat (limited to 'Zend/zend_object_handlers.h')
-rw-r--r--Zend/zend_object_handlers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_object_handlers.h b/Zend/zend_object_handlers.h
index 9e9d8f644d..c4b0d7c50b 100644
--- a/Zend/zend_object_handlers.h
+++ b/Zend/zend_object_handlers.h
@@ -28,6 +28,9 @@ struct _zend_property_info;
#define ZEND_WRONG_PROPERTY_INFO \
((struct _zend_property_info*)((zend_intptr_t)-1))
+#define ZEND_DYNAMIC_PROPERTY_OFFSET (-1)
+#define ZEND_WRONG_PROPERTY_OFFSET (-2)
+
/* The following rule applies to read_property() and read_dimension() implementations:
If you return a zval which is not otherwise referenced by the extension or the engine's
symbol table, its reference count should be 0.