From: Frank M. Kromann Date: Wed, 14 Nov 2001 20:42:38 +0000 (+0000) Subject: Prevent fbsql_num_rows from looping X-Git-Tag: ChangeLog~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c06e3c4bb35cd8ddcf076e48821b9fe429a5edd;p=php Prevent fbsql_num_rows from looping --- diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index faafa24ccb..f078e6ab75 100644 --- a/ext/fbsql/php_fbsql.c +++ b/ext/fbsql/php_fbsql.c @@ -639,7 +639,7 @@ int phpfbFetchRow(PHPFBResult* result, int row) for (;;) { void *rawData; - if (row >= result->rowCount && row != 0x7fffffff) return 0; + if (row >= result->rowCount && result->rowCount != 0x7fffffff) return 0; if (fbcrhRowCount(result->rowHandler) > (unsigned int)row) return 1; rawData = fbcdcFetch(result->link->connection, result->batchSize, result->fetchHandle); if (!fbcrhAddBatch(result->rowHandler, rawData)) result->rowCount = fbcrhRowCount(result->rowHandler);