cvs: php4 /ext/pgsql pgsql.c
| From: | Yasuo Ohgaki | Date: | Sun, 09 Feb 2003 07:50:16 +0000 |
| Subject: | cvs: php4 /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18513@lists.php.net to get a copy of this message | ||
yohgaki Sun Feb 9 02:50:16 2003 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
Fixed one more improper row offset handling.
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.259 php4/ext/pgsql/pgsql.c:1.260
--- php4/ext/pgsql/pgsql.c:1.259 Sun Feb 9 02:24:18 2003
+++ php4/ext/pgsql/pgsql.c Sun Feb 9 02:50:16 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.259 2003/02/09 07:24:18 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.260 2003/02/09 07:50:16 yohgaki Exp $ */
#include <stdlib.h>
@@ -2975,7 +2975,7 @@
pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result->conn = pgsql;
pg_result->result = pgsql_result;
- pg_result->row = -1;
+ pg_result->row = 0;
ZEND_REGISTER_RESOURCE(return_value, pg_result, le_result);
}
/* }}} */