diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-09-28 07:16:31 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-09-28 07:16:31 +0000 |
commit | ecd52167d7cea805b9f2304bd42ae26cee1f1575 (patch) | |
tree | 97708935c0f168582b9c571cca5ac28f55933218 | |
parent | 5860f471222a71e6283d23dbe4d736a27106e9a9 (diff) | |
download | php-git-ecd52167d7cea805b9f2304bd42ae26cee1f1575.tar.gz |
Fixed wrong return value
-rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index ab535ea74d..64814396ca 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -797,7 +797,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 %s() of class %s which is not a derived from %s", fname, calling_scope->name, check_scope_or_static->name); - return 0; + return FAILURE; } } else { char *function_name_lc = zend_str_tolower_dup(fname, fname_len); |