cvs: phpdoc /en/reference/sqlite setup.xml
| From: | Philip Olson | Date: | Sat, 04 Apr 2009 04:03:05 +0000 |
| Subject: | cvs: phpdoc /en/reference/sqlite setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3653@lists.php.net to get a copy of this message | ||
philip Sat Apr 4 04:03:05 2009 UTC
Modified files:
/phpdoc/en/reference/sqlite setup.xml
Log:
Cleanup, as:
- The PECL versions is dead, so describe an alternative
- On by default as of PHP 5
- Windows notes cleaned up
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sqlite/setup.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/sqlite/setup.xml
diff -u phpdoc/en/reference/sqlite/setup.xml:1.4 phpdoc/en/reference/sqlite/setup.xml:1.5
--- phpdoc/en/reference/sqlite/setup.xml:1.4 Sun Jun 8 11:00:25 2008
+++ phpdoc/en/reference/sqlite/setup.xml Sat Apr 4 04:03:05 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<chapter xml:id="sqlite.setup" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
@@ -8,9 +8,8 @@
<section xml:id="sqlite.requirements">
&reftitle.required;
<para>
- In order to have these functions available, you must compile PHP with
- SQLite support, or load the SQLite extension dynamically from your
- &php.ini;.
+ The SQLite extension is enabled by default as of PHP 5. Before that
+ time the SQLite library is needed.
</para>
</section>
<!-- }}} -->
@@ -19,23 +18,27 @@
<section xml:id="sqlite.installation">
&reftitle.install;
<para>
- Read the INSTALL file, which comes with the package. Or just use the PEAR
- installer with <command>pecl install sqlite</command>.
- SQLite itself is already included, You do not need to install
- any additional software.
+ As of PHP 5 this extension is enabled by default, so simply do not
+ disable it and it'll be available.
</para>
+ <caution>
+ <para>
+ Do not use the PECL version of this extension, as it is
+ unmaintained. Always use the SQLite extension that comes with
+ the PHP sources even while compiling as shared. In this case
+ the sources are in <literal>php-src-dir/ext/sqlite</literal>
+ and the <link linkend="install.pecl.phpize">phpize</link>
+ method of building applies.
+ </para>
+ </caution>
<para>
- Windows users will enable <filename>php_sqlite.dll</filename> inside
+ Windows users must enable <filename>php_sqlite.dll</filename> inside
of &php.ini; in order to use these functions.
&pecl.windows.download;
</para>
<para>
- In PHP 5, the SQLite extension and the engine itself are bundled and
- compiled by default. However, since PHP 5.1.0 you need to manually
- activate the extension in &php.ini; (because it is now bundled as
- shared). Moreover, since PHP 5.1.0 SQLite depends on <link
- linkend="intro.pdo">PDO</link> it must be enabled too, by adding the
- following lines to &php.ini; (in order):
+ Windows builds must also enable PDO because as of PHP 5.1.0 it depends
+ on it. So, &php.ini; will end up with something like this:
<informalexample>
<programlisting role="ini">
<![CDATA[
@@ -49,6 +52,10 @@
<command>--with-sqlite=shared</command> configure option.
</para>
<para>
+ The PHP 5.0.x series of Windows builds enabled this extension by
+ default, where no <acronym>DLL</acronym> file is necessary.
+ </para>
+ <para>
SQLite 3 is supported through <link
linkend="ref.pdo-sqlite">PDO SQLite</link>.
</para>