From 3c06e3c4bb35cd8ddcf076e48821b9fe429a5edd Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Wed, 14 Nov 2001 20:42:38 +0000 Subject: [PATCH] Prevent fbsql_num_rows from looping --- ext/fbsql/php_fbsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0