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

View file

@ -76,7 +76,7 @@ static void php_sqlite3_error(php_sqlite3_db_object *db_obj, char *format, ...)
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("sqlite3.extension_dir", NULL, PHP_INI_SYSTEM, OnUpdateString, extension_dir, zend_sqlite3_globals, sqlite3_globals)
#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
PHP_INI_END()
/* }}} */