diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2016-07-03 22:42:10 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2016-07-03 22:42:10 -0500 |
commit | d9a9cf8ecaef891b2369969e9efe9f6261359158 (patch) | |
tree | 04bcc83b3c9be1924007e007e1f508f7229af7ab /ext/sqlite3/sqlite3.c | |
parent | 583386d59e6b362fe49e51594718a109d0c0cc2f (diff) | |
parent | c2b29a58bc0916e248ba2584564558097b16b51f (diff) | |
download | php-git-d9a9cf8ecaef891b2369969e9efe9f6261359158.tar.gz |
Merge branch 'master' into iterable
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; } /* }}} */ |