Browse Source

Fixed wrong return value

migration/RELEASE_1_0_0
Dmitry Stogov 20 years ago
parent
commit
d746725744
  1. 2
      Zend/zend_execute_API.c

2
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;

Loading…
Cancel
Save