From: Felipe Pena Date: Thu, 5 Jun 2008 18:50:29 +0000 (+0000) Subject: - Fixed bug #45180 ('class::method' works differently than array('class', 'method')) X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2af92fa8361ef67bf7f85c6d4da5256655cf94ca;p=php - Fixed bug #45180 ('class::method' works differently than array('class', 'method')) --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 6e351000e2..55d299b415 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -907,6 +907,10 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS EX(function_state).function = zend_std_get_static_method(calling_scope, fname, fname_len TSRMLS_CC); } + if (((zend_internal_function*)EX(function_state).function)->handler == zend_std_call_user_call) { + fci->object_pp = &EG(This); + } + if (check_scope_or_static && EX(function_state).function && !(EX(function_state).function->common.fn_flags & ZEND_ACC_STATIC) && !instanceof_function(check_scope_or_static, calling_scope TSRMLS_CC)) {