cvs: php4 /ext/yaz php_yaz.c

From: Date: Mon, 19 Feb 2001 17:06:39 +0000
Subject: cvs: php4 /ext/yaz php_yaz.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4128@lists.php.net to get a copy of this message
dickmeiss Mon Feb 19 09:06:39 2001 EDT Modified files: /php4/ext/yaz php_yaz.c Log: Bug fix: number of records in yaz_range wrongly set to zero. Index: php4/ext/yaz/php_yaz.c diff -u php4/ext/yaz/php_yaz.c:1.10 php4/ext/yaz/php_yaz.c:1.11 --- php4/ext/yaz/php_yaz.c:1.10 Tue Feb 13 12:02:52 2001 +++ php4/ext/yaz/php_yaz.c Mon Feb 19 09:06:39 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_yaz.c,v 1.10 2001/02/13 20:02:52 dickmeiss Exp $ */ +/* $Id: php_yaz.c,v 1.11 2001/02/19 17:06:39 dickmeiss Exp $ */ #include "php.h" @@ -360,10 +360,11 @@ t->resultSets->recordList->records[i] = 0; if (t->numberOfRecordsRequested + t->resultSetStartPoint-1 > t->resultSets->resultCount) - t->numberOfRecordsRequested = t->resultSets->resultCount - - t->resultSetStartPoint + 1; - t->resultSets->recordList->num_records = - t->numberOfRecordsRequested; + t->resultSets->recordList->num_records = + t->resultSets->resultCount - t->resultSetStartPoint + 1; + else + t->resultSets->recordList->num_records = + t->numberOfRecordsRequested; } if (sr && sr->which == Z_Records_DBOSD) {

« previous php.cvs (#4128) next »