diff options
author | Scott MacVicar <scottmac@php.net> | 2009-06-08 02:15:54 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2009-06-08 02:15:54 +0000 |
commit | 40521699ce475602f193c9b465da3b6173b62293 (patch) | |
tree | 4fdf2a0bb5d1b95a9b80ecda2c48d6eee2ca10fb /ext/sqlite3/sqlite3.c | |
parent | 5289261baa822cfd77c496a67fd0ae86af094f46 (diff) | |
download | php-git-40521699ce475602f193c9b465da3b6173b62293.tar.gz |
MFH make SQLite3::enableExceptions() return the previous value.
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r-- | ext/sqlite3/sqlite3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index 683c01ae1b..50a4e75e9b 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -1109,8 +1109,8 @@ PHP_METHOD(sqlite3, openBlob) } /* }}} */ -/* {{{ proto void SQLite3::enableExceptions([bool enableExceptions = false]) - Open a blob as a stream which we can read / write to. */ +/* {{{ proto bool SQLite3::enableExceptions([bool enableExceptions = false]) + Enables an exception error mode. */ PHP_METHOD(sqlite3, enableExceptions) { php_sqlite3_db_object *db_obj; @@ -1123,6 +1123,8 @@ PHP_METHOD(sqlite3, enableExceptions) return; } + RETVAL_BOOL(db_obj->exception); + db_obj->exception = enableExceptions; } /* }}} */ |