From: Dmitry Stogov Date: Wed, 9 Jan 2008 07:57:23 +0000 (+0000) Subject: Fixed bug #43703 (Signature compatibility check broken) X-Git-Tag: php-5.2.6RC1~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b58a5db130e4ea681a3e1cf28b52f42dc224e12e;p=php Fixed bug #43703 (Signature compatibility check broken) --- diff --git a/NEWS b/NEWS index e84d02d403..29a955de76 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ PHP NEWS - Fixed bug #43793 (zlib filter is unable to auto-detect gzip/zlib file headers). (Greg) +- Fixed bug #43703 (Signature compatibility check broken). (Dmitry) - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). (David Soria Parra) - Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";"). (Ilia) diff --git a/Zend/tests/bug43703.phpt b/Zend/tests/bug43703.phpt new file mode 100644 index 0000000000..de4f8a89fd --- /dev/null +++ b/Zend/tests/bug43703.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #43703 (Signature compatibility check broken) +--FILE-- + +DONE +--EXPECT-- +DONE diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index bd6f3cc299..3ba4cad32b 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2021,7 +2021,7 @@ static zend_bool zend_do_perform_implementation_check(zend_function *fe, zend_fu 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) { return 0; } if (fe->common.arg_info[i].array_type_hint != proto->common.arg_info[i].array_type_hint) {