cvs: Zend / zend_builtin_functions.c
| From: | Andrei Zmievski | Date: | Sat, 08 Jun 2002 13:45:23 +0000 |
| Subject: | cvs: Zend / zend_builtin_functions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-158@lists.php.net to get a copy of this message | ||
andrei Sat Jun 8 09:45:23 2002 EDT
Modified files:
/Zend zend_builtin_functions.c
Log:
Extension registered classes preserve their case in the class entries,
so we need to use case-insensitive comparison. A bit slower, but more
right.
Index: Zend/zend_builtin_functions.c
diff -u Zend/zend_builtin_functions.c:1.116 Zend/zend_builtin_functions.c:1.117
--- Zend/zend_builtin_functions.c:1.116 Mon May 13 04:38:39 2002
+++ Zend/zend_builtin_functions.c Sat Jun 8 09:45:23 2002
@@ -561,7 +561,7 @@
else
ce = Z_OBJCE_PP(obj);
for (; ce != NULL; ce = ce->parent) {
- if ((ce->name_length == (uint)Z_STRLEN_PP(class_name)) && !memcmp(ce->name, lcname,
ce->name_length)) {
+ if ((ce->name_length == (uint)Z_STRLEN_PP(class_name)) &&
!zend_binary_strcasecmp(ce->name, ce->name_length, lcname, Z_STRLEN_PP(class_name))) {
efree(lcname);
RETURN_TRUE;
}