mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
documented new optional parameter client_flags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88227 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
336f34d4b4
commit
80b722d157
2 changed files with 20 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-connect">
|
||||
<refnamediv>
|
||||
|
@ -22,6 +22,9 @@
|
|||
<methodparam choice="opt"><type>bool</type><parameter>
|
||||
new_link
|
||||
</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>
|
||||
client_flags
|
||||
</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns a MySQL link identifier on success, or &false; on failure.
|
||||
|
@ -60,13 +63,19 @@
|
|||
returned. The <parameter>new_link</parameter> parameter modifies this
|
||||
behavior and makes <function>mysql_connect</function> always open
|
||||
a new link, even if <function>mysql_connect</function> was called
|
||||
before with the same parameters.
|
||||
before with the same parameters. The <parameter>client_flags</parameter>
|
||||
parameter can be a combination of the constants MYSQL_CLIENT_SSL,
|
||||
MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
The <parameter>new_link</parameter> parameter became available
|
||||
in PHP 4.2.0
|
||||
</para>
|
||||
<para>
|
||||
The <parameter>client_flags</parameter> parameter became available in
|
||||
PHP 4.3.0
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
The link to the server will be closed as soon as the execution of
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-pconnect">
|
||||
<refnamediv>
|
||||
|
@ -17,6 +17,7 @@
|
|||
</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>username</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>client_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns a positive MySQL persistent link identifier on success,
|
||||
|
@ -29,6 +30,9 @@
|
|||
'localhost:3306', <parameter>username</parameter> = name of the
|
||||
user that owns the server process and
|
||||
<parameter>password</parameter> = empty password.
|
||||
The <parameter>client_flags</parameter>
|
||||
parameter can be a combination of the constants MYSQL_CLIENT_SSL,
|
||||
MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE.
|
||||
</para>
|
||||
<para>
|
||||
The <parameter>server</parameter> parameter can also include a port
|
||||
|
@ -62,6 +66,10 @@
|
|||
open for future use (<function>mysql_close</function> will not
|
||||
close links established by <function>mysql_pconnect</function>).
|
||||
</para>
|
||||
<para>
|
||||
The optional <parameter>client_flags</parameter> parameter became
|
||||
available in PHP 4.3.0.
|
||||
</para>
|
||||
<para>
|
||||
This type of link is therefore called 'persistent'.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue