mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Fix bug #24399 from an excellent test case by edin
This commit is contained in:
parent
832ffd1970
commit
d0bd54ce6a
@ -616,6 +616,9 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
|
||||
} else {
|
||||
if (only_subclass) {
|
||||
instance_ce = Z_OBJCE_PP(obj)->parent;
|
||||
if (!instance_ce) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
} else {
|
||||
instance_ce = Z_OBJCE_PP(obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user