1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 17:13:31 +02:00

Fixed method argument parsing

This commit is contained in:
Dmitry Stogov
2014-02-28 15:47:12 +04:00
parent 670ef9decd
commit d0311ad28e

View 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);