dmitry Tue Jun 7 11:38:37 2005 EDT
Modified files: (Branch: PHP_5_0)
/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.146.2.6&r2=1.146.2.7&ty=u
Index: php-src/ext/sqlite/sqlite.c
diff -u php-src/ext/sqlite/sqlite.c:1.146.2.6
php-src/ext/sqlite/sqlite.c:1.146.2.7
--- php-src/ext/sqlite/sqlite.c:1.146.2.6 Mon May 30 11:13:57 2005
+++ php-src/ext/sqlite/sqlite.c Tue Jun 7 11:38:37 2005
@@ -17,7 +17,7 @@
| Marcus Boerger <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.146.2.6 2005/05/30 15:13:57 sniper Exp $
+ $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37 dmitry Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -1076,7 +1076,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.146.2.6 2005/05/30 15:13:57
sniper Exp $");
+ php_info_print_table_row(2, "PECL Module version",
PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37
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();
@@ -1173,6 +1173,7 @@
}
if (errmsg) {
zval_dtor(errmsg);
+ ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
@@ -1248,6 +1249,7 @@
}
if (errmsg) {
zval_dtor(errmsg);
+ ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
@@ -1302,6 +1304,7 @@
}
if (errmsg) {
zval_dtor(errmsg);
+ ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php