From: Dmitry Stogov Date: Thu, 28 Sep 2006 07:16:59 +0000 (+0000) Subject: Fixed wrong return value X-Git-Tag: RELEASE_1_0_0RC1~1530 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d746725744d7121f414e22a47ae2415fab24b499;p=php Fixed wrong return value --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 95a7e1d430..ff5f4864ef 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -857,7 +857,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS && !(EX(function_state).function->common.fn_flags & ZEND_ACC_STATIC) && !instanceof_function(check_scope_or_static, calling_scope TSRMLS_CC)) { zend_error(E_ERROR, "Cannot call method %R() of class %v which is not a derived from %v", Z_TYPE_P(fci->function_name), Z_UNIVAL_P(fci->function_name), calling_scope->name, check_scope_or_static->name); - return 0; + return FAILURE; } } else { unsigned int lcname_len;