From 2af92fa8361ef67bf7f85c6d4da5256655cf94ca Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 5 Jun 2008 18:50:29 +0000 Subject: [PATCH] - Fixed bug #45180 ('class::method' works differently than array('class', 'method')) --- Zend/zend_execute_API.c | 4 ++++ 1 file changed, 4 insertions(+) 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)) { -- 2.50.1