diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-07-25 20:28:39 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-07-25 20:28:39 +0800 |
commit | f5e56cf9707a1be547cc29f568d6f60dbdbb1e4c (patch) | |
tree | ad643e66466c8080120a13932a4a503c1d2d5fb9 /ext/sqlite3/sqlite3.c | |
parent | 9a4c9348b1d5d533df6c876a62256a77704f29b7 (diff) | |
download | php-git-f5e56cf9707a1be547cc29f568d6f60dbdbb1e4c.tar.gz |
Fixed bug #72668 (Spurious warning when exception is thrown in user defined function)
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 0e0ef09d25..c9b6686689 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -672,8 +672,10 @@ PHP_METHOD(sqlite3, querySingle) break; } default: + if (!EG(exception)) { php_sqlite3_error(db_obj, "Unable to execute statement: %s", sqlite3_errmsg(db_obj->db)); - RETVAL_FALSE; + } + RETVAL_FALSE; } sqlite3_finalize(stmt); } |