cvs: ZendEngine2(PHP_5_2) / zend_execute_API.c
| From: | Dmitry Stogov | Date: | Thu, 28 Sep 2006 07:16:31 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5275@lists.php.net to get a copy of this message | ||
dmitry Thu Sep 28 07:16:31 2006 UTC
Modified files: (Branch: PHP_5_2)
/ZendEngine2 zend_execute_API.c
Log:
Fixed wrong return value
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.20.2.6&r2=1.331.2.20.2.7&diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.331.2.20.2.6 ZendEngine2/zend_execute_API.c:1.331.2.20.2.7
--- ZendEngine2/zend_execute_API.c:1.331.2.20.2.6 Mon Sep 11 14:30:04 2006
+++ ZendEngine2/zend_execute_API.c Thu Sep 28 07:16:31 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.331.2.20.2.6 2006/09/11 14:30:04 tony2001 Exp $ */
+/* $Id: zend_execute_API.c,v 1.331.2.20.2.7 2006/09/28 07:16:31 dmitry Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -797,7 +797,7 @@
&& !(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);