PHP - Manual: 运行时配置
2024-11-15
这些函数的行为受 php.ini 中的设置影响。
名字 | 默认 | 可修改范围 | 更新日志 |
---|---|---|---|
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.
官方地址:https://www.php.net/manual/en/sqlite3.configuration.php