diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-07-11 11:51:34 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-07-11 11:51:34 +0800 |
commit | 24d0211b325c17d4182912aa406c7afe744a9a17 (patch) | |
tree | 272f4ef5a3b0234be153cfe405a571833a15e514 /ext/sqlite3/sqlite3.c | |
parent | 5f6effed4323191d00bbdb48271a390d366e539d (diff) | |
parent | a19655cfe39e4207da211610e3fc6550a6af07a0 (diff) | |
download | php-git-24d0211b325c17d4182912aa406c7afe744a9a17.tar.gz |
Merge branch 'PHP-7.0'
* PHP-7.0:
Fixed bug #72571 (SQLite3::bindValue, SQLite3::bindParam crash)
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r-- | ext/sqlite3/sqlite3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index 5ba59ad604..201c683b4f 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -1379,7 +1379,9 @@ static int register_bound_parameter_to_sqlite(struct php_sqlite3_bound_param *pa } if (param->param_number < 1) { - zend_string_release(param->name); + if (param->name) { + zend_string_release(param->name); + } return 0; } |