summaryrefslogtreecommitdiff
path: root/php.ini-development
diff options
context:
space:
mode:
authorbohwaz <github.bohwaz@miam.kd2.org>2018-12-16 22:52:37 +0100
committerJoe Watkins <krakjoe@php.net>2019-03-11 18:02:03 +0100
commit58c25bf679125a2da354db58ddc6b0cf6d10ee00 (patch)
tree3848c97cf6070cc408e80acfbc8ed9b51280eeba /php.ini-development
parent66bd861fcd2a508d5321d8a3be6158f5026aafc6 (diff)
downloadphp-git-58c25bf679125a2da354db58ddc6b0cf6d10ee00.tar.gz
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
Diffstat (limited to 'php.ini-development')
-rw-r--r--php.ini-development11
1 files changed, 11 insertions, 0 deletions
diff --git a/php.ini-development b/php.ini-development
index 3b8a2aff32..74e1f4a1d4 100644
--- a/php.ini-development
+++ b/php.ini-development
@@ -991,8 +991,19 @@ cli_server.color = On
;intl.use_exceptions = 0
[sqlite3]
+; Directory pointing to SQLite3 extensions
+; http://php.net/sqlite3.extension-dir
;sqlite3.extension_dir =
+; SQLite defensive mode flag (only available from SQLite 3.26+)
+; When the defensive flag is enabled, language features that allow ordinary
+; SQL to deliberately corrupt the database file are disabled. This forbids
+; writing directly to the schema, shadow tables (eg. FTS data tables), or
+; the sqlite_dbpage virtual table.
+; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html
+; (for older SQLite versions, this flag has no use)
+sqlite3.defensive = 1
+
[Pcre]
;PCRE library backtracking limit.
; http://php.net/pcre.backtrack-limit