cvs: php4 /ext/yaz php_yaz.c
| From: | Adam Dickmeiss | Date: | Tue, 13 Feb 2001 20:02:53 +0000 |
| Subject: | cvs: php4 /ext/yaz php_yaz.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4010@lists.php.net to get a copy of this message | ||
dickmeiss Tue Feb 13 12:02:53 2001 EDT
Modified files:
/php4/ext/yaz php_yaz.c
Log:
Bug fix: Record retrieval (present) is termiated on error.
Index: php4/ext/yaz/php_yaz.c
diff -u php4/ext/yaz/php_yaz.c:1.9 php4/ext/yaz/php_yaz.c:1.10
--- php4/ext/yaz/php_yaz.c:1.9 Mon Feb 12 15:31:10 2001
+++ php4/ext/yaz/php_yaz.c Tue Feb 13 12:02:52 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_yaz.c,v 1.9 2001/02/12 23:31:10 dickmeiss Exp $ */
+/* $Id: php_yaz.c,v 1.10 2001/02/13 20:02:52 dickmeiss Exp $ */
#include "php.h"
@@ -746,11 +746,10 @@
Z_PresentRequest *req = apdu->u.presentRequest;
int i = 0;
+ if (t->error) /* don't continue on error */
+ return 0;
if (!t->resultSets) /* no result set yet? */
- {
return 0;
- }
-
while (t->resultSets->recordList)
{
if (i >= t->resultSets->recordList->num_records)