mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
MFZE1
This commit is contained in:
parent
8b5411b938
commit
2310414868
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user