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)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]