cvs: pecl(PECL_4_3) /sqlite sqlite.c
| From: | Marcus Boerger | Date: | Thu, 26 Jun 2003 21:30:17 +0000 |
| Subject: | cvs: pecl(PECL_4_3) /sqlite sqlite.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-328@lists.php.net to get a copy of this message | ||
helly Thu Jun 26 17:30:17 2003 EDT
Modified files: (Branch: PECL_4_3)
/pecl/sqlite sqlite.c
Log:
(MFH) fix warnings
Index: pecl/sqlite/sqlite.c
diff -u pecl/sqlite/sqlite.c:1.62.2.4 pecl/sqlite/sqlite.c:1.62.2.5
--- pecl/sqlite/sqlite.c:1.62.2.4 Thu Jun 26 17:10:10 2003
+++ pecl/sqlite/sqlite.c Thu Jun 26 17:30:17 2003
@@ -17,7 +17,7 @@
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.62.2.4 2003/06/26 21:10:10 helly Exp $
+ $Id: sqlite.c,v 1.62.2.5 2003/06/26 21:30:17 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.4 2003/06/26 21:10:10 helly Exp $");
+ 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, "SQLite Library", sqlite_libversion());
php_info_print_table_row(2, "SQLite Encoding", sqlite_libencoding());
php_info_print_table_end();
@@ -1310,9 +1310,8 @@
/* {{{ php_sqlite_fetch_single */
static void php_sqlite_fetch_single(struct php_sqlite_result *res, zend_bool decode_binary, zval
*return_value TSRMLS_DC)
{
- int j, buffered = res->buffered;
- const char **rowdata, **colnames;
- char *decoded = NULL;
+ const char **rowdata;
+ char *decoded;
int decoded_len;
/* check range of the row */
@@ -1342,6 +1341,9 @@
decoded = (char*)rowdata[0];
rowdata[0] = NULL;
}
+ } else {
+ decoded = NULL;
+ decoded_len = 0;
}
if (!res->buffered) {
@@ -1433,9 +1435,6 @@
zval *zres;
zend_bool decode_binary = 1;
struct php_sqlite_result *res;
- char *decoded = NULL;
- int decoded_len;
- const char **rowdata;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|b", &zres,
&decode_binary)) {
return;