]> granicus.if.org Git - php/commitdiff
Fixed method argument parsing
authorDmitry Stogov <dmitry@zend.com>
Fri, 28 Feb 2014 11:47:12 +0000 (15:47 +0400)
committerDmitry Stogov <dmitry@zend.com>
Fri, 28 Feb 2014 11:47:12 +0000 (15:47 +0400)
Zend/zend_API.c

index 8580e5d2b43429ec79ee291c6d6a756e88244e6d..1e6a8a443d69e8a03494c1755107958eb8e19a20 100644 (file)
@@ -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);