運(yùn)行時配置

這些函數(shù)的行為受 php.ini 中的設(shè)置影響。

SQLite3 配置選項(xiàng)
名字 默認(rèn) 可修改范圍 更新日志
sqlite3.extension_dir "" PHP_INI_SYSTEM PHP 5.3.11 起可用
sqlite3.defensive 1 PHP_INI_SYSTEM PHP 7.2.17 和 7.3.4 起可用,libsqlite ≥ 3.26.0。

這是配置指令的簡短說明。

sqlite3.extension_dir string

Path to the directory where the loadable extensions for SQLite reside.

sqlite3.defensive bool

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. This php.ini setting is only effective for libsqlite ≥ 3.26.0.