mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix a warning.
This commit is contained in:
parent
180f91bac8
commit
86469a0dfb
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
|
|||
else
|
||||
ce = Z_OBJCE_PP(obj);
|
||||
for (; ce != NULL; ce = ce->parent) {
|
||||
if (!strncmp(ce->name, lcname, MIN(ce->name_length, Z_STRLEN_PP(class_name)))) {
|
||||
if (!strncmp(ce->name, lcname, MIN(ce->name_length, (uint)Z_STRLEN_PP(class_name)))) {
|
||||
efree(lcname);
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue