Added note that persistent connections are suported when using mysqlnd and libmysql.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@276504 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Anthony Bedford 2009-02-26 16:31:19 +00:00
parent 0efb4b9857
commit b5b2622cc8

View file

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<chapter xml:id="mysqli.persistconns" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>The mysqli Extension and Persistent Connections</title>
<para>
Persistent connection support was introduced in PHP 5.3 for the
<literal>mysqli</literal> extension. Support was already present in PDO
MYSQL and ext/mysql. The idea behind persistent connections is that a
connection between a client process and a database can be reused by a
client process, rather than being created and destroyed multiple
times. This reduces the overhead of creating fresh connections every
time one is required, as unused connections are cached and ready to be
reused.
<literal>mysqli</literal> extension. Support was already present in
PDO MYSQL and ext/mysql. The idea behind persistent connections is
that a connection between a client process and a database can be
reused by a client process, rather than being created and destroyed
multiple times. This reduces the overhead of creating fresh
connections every time one is required, as unused connections are
cached and ready to be reused.
</para>
<para>
@ -99,9 +99,21 @@
<para>
It is possible to switch off the automatic cleanup code, by compiling
PHP with <constant>MYSQLI_NO_CHANGE_USER_ON_PCONNECT</constant> defined.
PHP with
<constant>MYSQLI_NO_CHANGE_USER_ON_PCONNECT</constant>
defined.
</para>
<note>
<para>
The <literal>mysqli</literal> extension supports persistent
connections when using either MySQL Native Driver or MySQL Client
Library.
</para>
</note>
</chapter>
<!-- Keep this comment at the end of the file
Local variables: