summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-02-28 15:47:12 +0400
committerDmitry Stogov <dmitry@zend.com>2014-02-28 15:47:12 +0400
commitd0311ad28e460c82e6fb91eb8852fdaf8faba44a (patch)
tree136879662536b7e9afc35a051d745c8f9ed60311 /Zend/zend_API.c
parent670ef9decd446b2e1f706b01521feac5494e7304 (diff)
downloadphp-git-d0311ad28e460c82e6fb91eb8852fdaf8faba44a.tar.gz
Fixed method argument parsing
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 8580e5d2b4..1e6a8a443d 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1011,7 +1011,7 @@ ZEND_API int zend_parse_method_parameters(int num_args TSRMLS_DC, zval *this_ptr
zval **object;
zend_class_entry *ce;
- if (!this_ptr) {
+ if (!this_ptr || Z_TYPE_P(this_ptr) != IS_OBJECT) {
RETURN_IF_ZERO_ARGS(num_args, p, 0);
va_start(va, type_spec);