运行时配置

这些函数的行为受 php.ini 中的设置影响。

SQLite3 配置选项
名字 默认 可修改范围 更新日志
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.

User Contributed Notes

There are no user contributed notes for this page.
PHP8中文手册 站长在线 整理 版权归PHP文档组所有