Allow user to change SQLITE_DEFENSIVE if needed

Closes GH-8200.
This commit is contained in:
bohwaz 2022-03-14 20:09:20 +01:00 committed by Christoph M. Becker
parent 8dbfb15f7c
commit 2973b9f02a
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
3 changed files with 7 additions and 1 deletions

3
NEWS
View file

@ -31,6 +31,9 @@ PHP NEWS
- Sodium: - Sodium:
. Added sodium_crypto_stream_xchacha20_xor_ic(). (Scott) . Added sodium_crypto_stream_xchacha20_xor_ic(). (Scott)
- SQLite3:
. Changed sqlite3.defensive from PHP_INI_SYSTEM to PHP_INI_USER. (bohwaz)
- Standard: - Standard:
. net_get_interfaces() also reports wireless network interfaces on Windows. . net_get_interfaces() also reports wireless network interfaces on Windows.
(Yurun) (Yurun)

View file

@ -158,6 +158,9 @@ PHP 8.2 UPGRADE NOTES
- OCI8: - OCI8:
. The minimum Oracle Client library version required is now 11.2. . The minimum Oracle Client library version required is now 11.2.
- SQLite3:
. sqlite3.defensive is now PHP_INI_USER.
- Standard: - Standard:
. getimagesize() now reports the actual image dimensions, bits and channels . getimagesize() now reports the actual image dimensions, bits and channels
of AVIF images. Previously, the dimensions have been reported as 0x0, and of AVIF images. Previously, the dimensions have been reported as 0x0, and

View file

@ -76,7 +76,7 @@ static void php_sqlite3_error(php_sqlite3_db_object *db_obj, char *format, ...)
PHP_INI_BEGIN() PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("sqlite3.extension_dir", NULL, PHP_INI_SYSTEM, OnUpdateString, extension_dir, zend_sqlite3_globals, sqlite3_globals) STD_PHP_INI_ENTRY("sqlite3.extension_dir", NULL, PHP_INI_SYSTEM, OnUpdateString, extension_dir, zend_sqlite3_globals, sqlite3_globals)
#if SQLITE_VERSION_NUMBER >= 3026000 #if SQLITE_VERSION_NUMBER >= 3026000
STD_PHP_INI_BOOLEAN("sqlite3.defensive", "1", PHP_INI_SYSTEM, OnUpdateBool, dbconfig_defensive, zend_sqlite3_globals, sqlite3_globals) STD_PHP_INI_BOOLEAN("sqlite3.defensive", "1", PHP_INI_USER, OnUpdateBool, dbconfig_defensive, zend_sqlite3_globals, sqlite3_globals)
#endif #endif
PHP_INI_END() PHP_INI_END()
/* }}} */ /* }}} */