Skip to content

Commit 04bf2e5

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix GH-19962: arrayIndexThenCheck static analysis warning in firebird
2 parents e6906db + 4f9a39e commit 04bf2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_firebird/firebird_statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static int pdo_firebird_stmt_execute(pdo_stmt_t *stmt) /* {{{ */
235235
if (result_size > sizeof(result)) {
236236
goto error;
237237
}
238-
while (result[i] != isc_info_end && i < result_size) {
238+
while (i < result_size && result[i] != isc_info_end) {
239239
short len = (short) isc_vax_integer(&result[i + 1], 2);
240240
if (len != 1 && len != 2 && len != 4) {
241241
goto error;

0 commit comments

Comments
 (0)