cvs: ZendEngine2(PHP_5_3) / zend_API.c

From: Date: Fri, 01 Feb 2008 23:09:10 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6336@lists.php.net to get a copy of this message
rasmus Fri Feb 1 23:09:10 2008 UTC Modified files: (Branch: PHP_5_3) /ZendEngine2 zend_API.c Log: Small tweak. Need to make array and string callback syntax behave the same way. Also change "cannot" to "should not" since we obviously "can" make the call. http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.296.2.27.2.34.2.18&r2=1.296.2.27.2.34.2.19&diff_format=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.296.2.27.2.34.2.18 ZendEngine2/zend_API.c:1.296.2.27.2.34.2.19 --- ZendEngine2/zend_API.c:1.296.2.27.2.34.2.18 Fri Feb 1 21:27:55 2008 +++ ZendEngine2/zend_API.c Fri Feb 1 23:09:10 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.296.2.27.2.34.2.18 2008/02/01 21:27:55 helly Exp $ */ +/* $Id: zend_API.c,v 1.296.2.27.2.34.2.19 2008/02/01 23:09:10 rasmus Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -2412,9 +2412,9 @@ } } else { if (error) { - zend_spprintf(error, 0, "non-static method %s::%s() cannot be called statically", (*ce_ptr)->name, fptr->common.function_name); + zend_spprintf(error, 0, "non-static method %s::%s() should not be called statically", (*ce_ptr)->name, fptr->common.function_name); } else if (retval) { - zend_error(E_STRICT, "Non-static method %s::%s() cannot be called statically", (*ce_ptr)->name, fptr->common.function_name); + zend_error(E_STRICT, "Non-static method %s::%s() should not be called statically", (*ce_ptr)->name, fptr->common.function_name); } } } @@ -2478,7 +2478,7 @@ return 1; } - return zend_is_callable_check_func(check_flags|IS_CALLABLE_CHECK_IS_STATIC, zobj_ptr_ptr, NULL, callable, ce_ptr, fptr_ptr, error TSRMLS_CC); + return zend_is_callable_check_func(check_flags, zobj_ptr_ptr, NULL, callable, ce_ptr, fptr_ptr, error TSRMLS_CC); case IS_ARRAY: {

« previous php.zend-engine.cvs (#6336) next »