<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<section xml:id="sqlite3.configuration" xmlns="http://docbook.org/ns/docbook">
 &reftitle.runtime;
 &extension.runtime;
 <para>
  <table>
   <title>SQLite3 &ConfigureOptions;</title>
   <tgroup cols="4">
    <thead>
     <row>
      <entry>&Name;</entry>
      <entry>&Default;</entry>
      <entry>&Changeable;</entry>
      <entry>&Changelog;</entry>
     </row>
    </thead>
    <tbody xml:id="sqlite3.configuration.list">
     <row>
      <entry><link linkend="ini.sqlite3.extension-dir">sqlite3.extension_dir</link></entry>
      <entry>""</entry>
      <entry>PHP_INI_SYSTEM</entry>
      <entry></entry>
     </row>
     <row>
      <entry><link linkend="ini.sqlite3.defensive">sqlite3.defensive</link></entry>
      <entry>1</entry>
      <entry>PHP_INI_USER</entry>
      <entry>
       Available as of PHP 7.2.17 and 7.3.4 for libsqlite ≥ 3.26.0.
       Prior to PHP 8.2.0 this setting was changeable only as
       <constant>PHP_INI_SYSTEM</constant>.
      </entry>
     </row>
    </tbody>
   </tgroup>
  </table>
 </para>

 &ini.descriptions.title;

 <para>
  <variablelist>
   <varlistentry xml:id="ini.sqlite3.extension-dir">
     <term>
      <parameter>sqlite3.extension_dir</parameter>
      <type>string</type>
     </term>
     <listitem>
      <para>
       Path to the directory where the loadable extensions for SQLite reside.
      </para>
     </listitem>
    </varlistentry>
   <varlistentry xml:id="ini.sqlite3.defensive">
     <term>
      <parameter>sqlite3.defensive</parameter>
      <type>bool</type>
     </term>
     <listitem>
      <para>
       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.
      </para>
     </listitem>
    </varlistentry>
  </variablelist>
 </para>
</section>
