mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/mysqli: Use zval_is_true() instead of converting to boolean
This commit is contained in:
parent
340e139ea4
commit
9e67d0baa3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue