]> granicus.if.org Git - php/commitdiff
Fixed wrong return value
authorDmitry Stogov <dmitry@php.net>
Thu, 28 Sep 2006 07:16:59 +0000 (07:16 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 28 Sep 2006 07:16:59 +0000 (07:16 +0000)
Zend/zend_execute_API.c

index 95a7e1d430111b2635f11e61fe390d4edf9222c8..ff5f4864ef560a991e09263490dd7709407c2612 100644 (file)
@@ -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;