Skip to content

Commit 290e012

Browse files
authored
Merge branch 'php:master' into master
2 parents 77f2c4e + 04bf2e5 commit 290e012

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/pdo_firebird/firebird_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /*
758758
ret = -1;
759759
goto free_statement;
760760
}
761-
while (result[i] != isc_info_end && i < result_size) {
761+
while (i < result_size && result[i] != isc_info_end) {
762762
short len = (short)isc_vax_integer(&result[i+1],2);
763763
/* bail out on bad len */
764764
if (len != 1 && len != 2 && len != 4) {

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)