cvs: php-src /ext/sqlite sqlite.c
| From: | Dmitry Stogov | Date: | Tue, 07 Jun 2005 15:39:35 +0000 |
| Subject: | cvs: php-src /ext/sqlite sqlite.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-32151@lists.php.net to get a copy of this message | ||
dmitry Tue Jun 7 11:39:35 2005 EDT
Modified files:
/php-src/ext/sqlite sqlite.c
Log:
Fixed memory allocation bugs. Probably this patch should fix bug #31725.
http://cvs.php.net/diff.php/php-src/ext/sqlite/sqlite.c?r1=1.162&r2=1.163&ty=u
Index: php-src/ext/sqlite/sqlite.c
diff -u php-src/ext/sqlite/sqlite.c:1.162 php-src/ext/sqlite/sqlite.c:1.163
--- php-src/ext/sqlite/sqlite.c:1.162 Mon May 30 11:14:12 2005
+++ php-src/ext/sqlite/sqlite.c Tue Jun 7 11:39:35 2005
@@ -17,7 +17,7 @@
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.162 2005/05/30 15:14:12 sniper Exp $
+ $Id: sqlite.c,v 1.163 2005/06/07 15:39:35 dmitry Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -1108,7 +1108,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.162 2005/05/30 15:14:12 sniper Exp $");
+ php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id:
sqlite.c,v 1.163 2005/06/07 15:39:35 dmitry 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();
@@ -1205,6 +1205,7 @@
}
if (errmsg) {
zval_dtor(errmsg);
+ ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
@@ -1280,6 +1281,7 @@
}
if (errmsg) {
zval_dtor(errmsg);
+ ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
@@ -1334,6 +1336,7 @@
}
if (errmsg) {
zval_dtor(errmsg);
+ ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {