diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-11-29 15:10:39 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-11-29 15:10:39 +0100 |
commit | a757ebb5b58db9e15b71ed50c6ba9e2a5111508c (patch) | |
tree | 21928175b0254e55a478e85955a90d570e9066fa /UPGRADING | |
parent | 1674db8c40f363a5fe0ef2ca5dd1bcebbd6cdfa0 (diff) | |
download | php-git-a757ebb5b58db9e15b71ed50c6ba9e2a5111508c.tar.gz |
Require SQLite ≥ 3.7.4 for ext/sqlite3
`SQLite3::readOnly()` uses `sqlite3_stmt_readonly()` which is only
available as of libsqlite 3.7.4. For older SQLite3 versions we return
always `false`, which can be confusing. Instead of sticking with this
behavior, or even undefining the method for old SQLite3 versions, we
lift the requirements to SQLite 3.7.4 (released on 2010-12-08),
according to a respective discussion[1].
Since pdo_sqlite doesn't use `sqlite3_stmt_readonly()`, we stick with
the minimum requirement of SQLite 3.5.0.
[1] <https://github.com/php/php-src/pull/3614>
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -135,8 +135,9 @@ PHP 7.4 UPGRADE NOTES Use corresponding constants instead (e.g. ReflectionMethod::IS_PUBLIC). - SQLite3: - . The bundled libsqlite has been removed. To build the SQLite3 and/or - PDO_SQLite extensions a system libsqlite3 ≥ 3.5.0 is now required. + . The bundled libsqlite has been removed. To build the SQLite3 extension + a system libsqlite3 ≥ 3.7.4 is now required. To build the PDO_SQLite + extension a system libsqlite3 ≥ 3.5.0 is now required. . (Un)serialization of SQLite3, SQLite3Stmt and SQLite3Result is now explictly forbidden. Formerly, serialization of instances of these classes was possible, but unserialization yielded unusable objects. |