diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-07-11 11:51:19 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-07-11 11:51:19 +0800 |
commit | a19655cfe39e4207da211610e3fc6550a6af07a0 (patch) | |
tree | b2365fc6d38c72edfb9ea3b599dbacb26e9c4fa0 /ext/sqlite3/sqlite3.c | |
parent | 4d677ae0e2465188f59ec9226ee16011692286c8 (diff) | |
download | php-git-a19655cfe39e4207da211610e3fc6550a6af07a0.tar.gz |
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 9436c158b5..0e0ef09d25 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -1394,7 +1394,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; } |