summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-10-16 14:24:23 +0200
committerNikita Popov <nikic@php.net>2014-10-16 14:24:23 +0200
commitcf5920e8aa8958d47f391c483d7399fc77a58092 (patch)
tree830ffe27799c2e203f0b295a439e3d9a2fab07fe /Zend/zend_API.h
parent53a8584123f359c2c32f1869d98e4dd9e0a7a6ab (diff)
downloadphp-git-cf5920e8aa8958d47f391c483d7399fc77a58092.tar.gz
Fix procedural finfo calls in methods
getThis() will return the $this of the calling method.
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index b23b5b32f0..b2faf7e253 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -342,6 +342,7 @@ 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_OBJ(EX(This)) ? &EX(This) : NULL)
+#define ZEND_IS_METHOD_CALL() (EX(func)->common.scope != NULL)
#define WRONG_PARAM_COUNT ZEND_WRONG_PARAM_COUNT()
#define WRONG_PARAM_COUNT_WITH_RETVAL(ret) ZEND_WRONG_PARAM_COUNT_WITH_RETVAL(ret)