diff options
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r-- | ext/sqlite3/sqlite3.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index d7f7722959..5ba59ad604 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -1169,7 +1169,8 @@ static php_stream_ops php_stream_sqlite3_ops = { "SQLite3", php_sqlite3_stream_seek, php_sqlite3_stream_cast, - php_sqlite3_stream_stat + php_sqlite3_stream_stat, + NULL }; /* {{{ proto resource SQLite3::openBlob(string table, string column, int rowid [, string dbname]) @@ -1317,6 +1318,12 @@ PHP_METHOD(sqlite3stmt, clear) RETURN_FALSE; } + if (stmt_obj->bound_params) { + zend_hash_destroy(stmt_obj->bound_params); + FREE_HASHTABLE(stmt_obj->bound_params); + stmt_obj->bound_params = NULL; + } + RETURN_TRUE; } /* }}} */ |