Fix recently introduced off-by-one error

This commit is contained in:
Christoph M. Becker 2020-09-29 18:44:23 +02:00
parent a4331a67f4
commit a1ee3c74d1

View File

@ -1087,7 +1087,7 @@ PHP_FUNCTION(odbc_execute)
efree(params);
RETURN_FALSE;
}
if (i++ > result->numparams) break;
if (++i > result->numparams) break;
} ZEND_HASH_FOREACH_END();
}
/* Close cursor, needed for doing multiple selects */