From: Pierre Joye Date: Tue, 24 Mar 2009 09:44:16 +0000 (+0000) Subject: - fix logic after my build fix, thx to Hannes for the head up! X-Git-Tag: php-5.3.0RC2~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=043ae0e0ee5cbf01c1dd87d71289fc2f096bfb3a;p=php - fix logic after my build fix, thx to Hannes for the head up! --- diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index facd218a9f..896885085e 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -1631,7 +1631,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) SQLUSMALLINT RowStatus[1]; SQLLEN rownum; zval *pv_res, *tmp; - long pv_row = 1; + long pv_row = -1; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &pv_res, &pv_row) == FAILURE) { return;