From d0311ad28e460c82e6fb91eb8852fdaf8faba44a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 28 Feb 2014 15:47:12 +0400 Subject: Fixed method argument parsing --- Zend/zend_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_API.c') 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); -- cgit v1.2.1