cvs: ZendEngine2(PHP_5_3) / zend_compile.c /tests bug43703.phpt
| From: | Dmitry Stogov | Date: | Wed, 09 Jan 2008 07:57:42 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_3) / zend_compile.c /tests bug43703.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6258@lists.php.net to get a copy of this message | ||
dmitry Wed Jan 9 07:57:42 2008 UTC
Added files: (Branch: PHP_5_3)
/ZendEngine2/tests bug43703.phpt
Modified files:
/ZendEngine2 zend_compile.c
Log:
Fixed bug #43703 (Signature compatibility check broken)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.27.2.41.2.35&r2=1.647.2.27.2.41.2.36&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.35
ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.36
--- ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.35 Mon Dec 31 07:17:04 2007
+++ ZendEngine2/zend_compile.c Wed Jan 9 07:57:41 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.35 2007/12/31 07:17:04 sebastian Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.36 2008/01/09 07:57:41 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -2293,13 +2293,13 @@
return 0;
}
if (fe->common.arg_info[i].class_name
- && strcmp(fe->common.arg_info[i].class_name,
proto->common.arg_info[i].class_name)!=0) {
+ && strcasecmp(fe->common.arg_info[i].class_name,
proto->common.arg_info[i].class_name)!=0) {
char *colon;
if (fe->common.type == ZEND_USER_FUNCTION &&
strchr(proto->common.arg_info[i].class_name, ':') == NULL &&
(colon = zend_memrchr(fe->common.arg_info[i].class_name, ':',
fe->common.arg_info[i].class_name_len)) != NULL &&
- strcmp(colon+1, proto->common.arg_info[i].class_name) == 0) {
+ strcasecmp(colon+1, proto->common.arg_info[i].class_name) == 0) {
efree((char*)fe->common.arg_info[i].class_name);
fe->common.arg_info[i].class_name = estrndup(proto->common.arg_info[i].class_name,
proto->common.arg_info[i].class_name_len);
fe->common.arg_info[i].class_name_len = proto->common.arg_info[i].class_name_len;
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug43703.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug43703.phpt
+++ ZendEngine2/tests/bug43703.phpt