summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2002-03-01 17:34:52 +0000
committerAndrei Zmievski <andrei@php.net>2002-03-01 17:34:52 +0000
commita8609b1ba72ea3fc303451b57366b9174b78bf70 (patch)
tree04283473005891b5969db0ea4c25f143227db828 /Zend/zend_API.c
parent231041486800e4f68365376d5baecce7801005d1 (diff)
downloadphp-git-a8609b1ba72ea3fc303451b57366b9174b78bf70.tar.gz
MFZE1
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index cee33f1829..9fec995375 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -212,7 +212,10 @@ static int zend_check_class(zval *obj, zend_class_entry *expected_ce)
}
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;
}
}