diff options
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r-- | Zend/zend_API.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 60f16b629e..a8c04658d8 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -357,7 +357,9 @@ ZEND_API zval *zend_read_static_property(zend_class_entry *scope, const char *na ZEND_API char *zend_get_type_by_const(int type); -#define getThis() ((Z_TYPE(EX(This)) == IS_OBJECT) ? &EX(This) : NULL) +#define ZEND_THIS (&EX(This)) + +#define getThis() ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL) #define ZEND_IS_METHOD_CALL() (EX(func)->common.scope != NULL) #define WRONG_PARAM_COUNT ZEND_WRONG_PARAM_COUNT() |