Skip to content

Commit c218f62

Browse files
authored
Remove always-true check in pdo_stmt.c (#17535)
`check_empty` is checked earlier up, so this variable is always true.
1 parent 1aaf2b1 commit c218f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ static int row_dim_exists(zend_object *object, zval *offset, int check_empty)
23602360
return false;
23612361
}
23622362
ZEND_ASSERT(retval == &tmp_val);
2363-
bool res = check_empty ? i_zend_is_true(retval) : Z_TYPE(tmp_val) != IS_NULL;
2363+
bool res = i_zend_is_true(retval);
23642364
zval_ptr_dtor_nogc(retval);
23652365
return res;
23662366
} else {

0 commit comments

Comments
 (0)