cvs: pecl(PECL_4_3) /sqlite sqlite.c
| From: | Marcus Boerger | Date: | Tue, 08 Jul 2003 18:59:00 +0000 |
| Subject: | cvs: pecl(PECL_4_3) /sqlite sqlite.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-354@lists.php.net to get a copy of this message | ||
helly Tue Jul 8 14:59:00 2003 EDT
Modified files: (Branch: PECL_4_3)
/pecl/sqlite sqlite.c
Log:
MFH: Fix bug #24540
Index: pecl/sqlite/sqlite.c
diff -u pecl/sqlite/sqlite.c:1.62.2.5 pecl/sqlite/sqlite.c:1.62.2.6
--- pecl/sqlite/sqlite.c:1.62.2.5 Thu Jun 26 17:30:17 2003
+++ pecl/sqlite/sqlite.c Tue Jul 8 14:58:59 2003
@@ -17,7 +17,7 @@
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.62.2.5 2003/06/26 21:30:17 helly Exp $
+ $Id: sqlite.c,v 1.62.2.6 2003/07/08 18:58:59 helly Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -668,7 +668,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "SQLite support", "enabled");
- php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id:
sqlite.c,v 1.62.2.5 2003/06/26 21:30:17 helly Exp $");
+ php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id:
sqlite.c,v 1.62.2.6 2003/07/08 18:58:59 helly Exp $");
php_info_print_table_row(2, "SQLite Library", sqlite_libversion());
php_info_print_table_row(2, "SQLite Encoding", sqlite_libencoding());
php_info_print_table_end();
@@ -1637,7 +1637,7 @@
RETURN_FALSE;
}
- if (row < 1 || row >= res->nrows) {
+ if (row < 0 || row >= res->nrows) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "row %d out of range", row);
RETURN_FALSE;
}