Fix bug #24399 from an excellent test case by edin

This commit is contained in:
Sterling Hughes 2003-06-30 19:11:01 +00:00
parent 832ffd1970
commit d0bd54ce6a

View File

@ -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);
}