cvs: Zend / zend_API.c
| From: | Andrei Zmievski | Date: | Fri, 01 Mar 2002 17:24:24 +0000 |
| Subject: | cvs: Zend / zend_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9552@lists.php.net to get a copy of this message | ||
andrei Fri Mar 1 12:24:24 2002 EDT
Modified files:
/Zend zend_API.c
Log:
Class entries should be compared by name instead of by addresses.
Index: Zend/zend_API.c
diff -u Zend/zend_API.c:1.107 Zend/zend_API.c:1.108
--- Zend/zend_API.c:1.107 Sun Jan 6 10:21:08 2002
+++ Zend/zend_API.c Fri Mar 1 12:24:23 2002
@@ -207,7 +207,7 @@
}
for (ce = Z_OBJCE_P(obj); ce != NULL; ce = ce->parent) {
- if (ce == expected_ce) {
+ if (!strncmp(ce->name, expected_ce->name, MIN(ce->name_length,
expected_ce->name_length))) {
return 1;
}
}