diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index a04b19ec50f..c65ce3083fe 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -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 */