ext/mysqli: Use zval_is_true() instead of converting to boolean

This commit is contained in:
Gina Peter Banyard 2025-05-28 13:47:13 +01:00
parent 340e139ea4
commit 9e67d0baa3

View file

@ -316,8 +316,8 @@ static int mysqli_object_has_property(zend_object *object, zend_string *name, in
zval rv;
zval *value = mysqli_read_property(object, name, BP_VAR_IS, cache_slot, &rv);
if (value != &EG(uninitialized_zval)) {
convert_to_boolean(value);
has_property = Z_TYPE_P(value) == IS_TRUE;
has_property = zval_is_true(value);
zval_ptr_dtor(value);
}
break;
}