This commit is contained in:
Andrei Zmievski 2002-03-01 17:26:31 +00:00
parent 8b5411b938
commit 2310414868

View File

@ -212,7 +212,7 @@ static int zend_check_class(zval *obj, zend_class_entry *expected_ce)
}
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;
}
}