mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Remove always-true check in pdo_stmt.c (#17535)
`check_empty` is checked earlier up, so this variable is always true.
This commit is contained in:
parent
1aaf2b1899
commit
c218f62920
1 changed files with 1 additions and 1 deletions
|
@ -2360,7 +2360,7 @@ static int row_dim_exists(zend_object *object, zval *offset, int check_empty)
|
|||
return false;
|
||||
}
|
||||
ZEND_ASSERT(retval == &tmp_val);
|
||||
bool res = check_empty ? i_zend_is_true(retval) : Z_TYPE(tmp_val) != IS_NULL;
|
||||
bool res = i_zend_is_true(retval);
|
||||
zval_ptr_dtor_nogc(retval);
|
||||
return res;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue