cvs: ZendEngine2 / zend_API.c
| From: | Andrei Zmievski | Date: | Fri, 01 Mar 2002 17:34:54 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9556@lists.php.net to get a copy of this message | ||
andrei Fri Mar 1 12:34:54 2002 EDT
Modified files:
/ZendEngine2 zend_API.c
Log:
MFZE1
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.120 ZendEngine2/zend_API.c:1.121
--- ZendEngine2/zend_API.c:1.120 Fri Mar 1 12:26:31 2002
+++ ZendEngine2/zend_API.c Fri Mar 1 12:34:52 2002
@@ -212,7 +212,10 @@
}
for (ce = Z_OBJCE_P(obj); ce != NULL; ce = ce->parent) {
- if (!strncmp(ce->name, expected_ce->name, MIN(ce->name_length,
expected_ce->name_length))) {
+ /*
+ * C'est une UGLY HACK.
+ */
+ if (ce->refcount == expected_ce->refcount) {
return 1;
}
}