svn: /phpdoc/en/trunk/reference/ mysqli/mysqli/query.xml mysqli/mysqli_stmt/prepare.xml mysqlnd/notes.xml
| From: | Anthony Bedford | Date: | Mon, 13 Sep 2010 11:33:55 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/ mysqli/mysqli/query.xml mysqli/mysqli_stmt/prepare.xml mysqlnd/notes.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7094@lists.php.net to get a copy of this message | ||
abedford Mon, 13 Sep 2010 11:33:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303318
Log:
Moved information to a more relevant location.
Changed paths:
U phpdoc/en/trunk/reference/mysqli/mysqli/query.xml
U phpdoc/en/trunk/reference/mysqli/mysqli_stmt/prepare.xml
U phpdoc/en/trunk/reference/mysqlnd/notes.xml
Modified: phpdoc/en/trunk/reference/mysqli/mysqli/query.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqli/mysqli/query.xml 2010-09-13 11:17:40 UTC (rev 303317)
+++ phpdoc/en/trunk/reference/mysqli/mysqli/query.xml 2010-09-13 11:33:55 UTC (rev 303318)
@@ -31,6 +31,38 @@
<function>mysqli_use_result</function> or
<function>mysqli_store_result</function>.
</para>
+ <note>
+ <para>
+ In the case where you pass a statement to
+ <function>mysqli_query</function> that is longer than
+ <literal>max_allowed_packet</literal> of the server, the returned
+ error codes are different depending on whether you are using MySQL
+ Native Driver (<literal>mysqlnd</literal>) or MySQL Client Library
+ (<literal>libmysql</literal>). The behavior is as follows:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>mysqlnd</literal> on Linux returns an error code of 1153.
+ The error message means <quote>got a packet bigger than
+ <literal>max_allowed_packet</literal> bytes</quote>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>mysqlnd</literal> on Windows returns an error code 2006.
+ This error message means <quote>server has gone away</quote>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>libmysql</literal> on all platforms returns an error code
+ 2006. This error message means <quote>server has gone
+ away</quote>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </note>
</refsect1>
<refsect1 role="parameters">
Modified: phpdoc/en/trunk/reference/mysqli/mysqli_stmt/prepare.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqli/mysqli_stmt/prepare.xml 2010-09-13 11:17:40 UTC (rev 303317)
+++ phpdoc/en/trunk/reference/mysqli/mysqli_stmt/prepare.xml 2010-09-13 11:33:55 UTC (rev 303318)
@@ -29,6 +29,38 @@
<function>mysqli_stmt_bind_result</function> before executing the
statement or fetching rows.
</para>
+ <note>
+ <para>
+ In the case where you pass a statement to
+ <function>mysqli_stmt_prepare</function> that is longer than
+ <literal>max_allowed_packet</literal> of the server, the returned
+ error codes are different depending on whether you are using MySQL
+ Native Driver (<literal>mysqlnd</literal>) or MySQL Client Library
+ (<literal>libmysql</literal>). The behavior is as follows:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>mysqlnd</literal> on Linux returns an error code of 1153.
+ The error message means <quote>got a packet bigger than
+ <literal>max_allowed_packet</literal> bytes</quote>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>mysqlnd</literal> on Windows returns an error code 2006.
+ This error message means <quote>server has gone away</quote>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>libmysql</literal> on all platforms returns an error code
+ 2006. This error message means <quote>server has gone
+ away</quote>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </note>
</refsect1>
<refsect1 role="parameters">
Modified: phpdoc/en/trunk/reference/mysqlnd/notes.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqlnd/notes.xml 2010-09-13 11:17:40 UTC (rev 303317)
+++ phpdoc/en/trunk/reference/mysqlnd/notes.xml 2010-09-13 11:33:55 UTC (rev 303318)
@@ -6,44 +6,6 @@
This section provides a collection of miscellaneous notes on MySQL
Native Driver usage.
</para>
- <itemizedlist>
- <listitem>
- <para>
- In the case where you pass a statement to
- <function>mysqli_query</function> that is longer than
- <literal>max_allowed_packet</literal> of the server, the returned
- error codes are different depending on whether you are using MySQL
- Native Driver (<literal>mysqlnd</literal>) or MySQL Client Library
- (<literal>libmysql</literal>). The behavior is as follows:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <literal>mysqlnd</literal> on Linux returns an error code of 1153.
- The error message means <quote>got a packet bigger than
- <literal>max_allowed_packet</literal> bytes</quote>.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>mysqlnd</literal> on Windows returns an error code 2006.
- This error message means <quote>server has gone away</quote>.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>libmysql</literal> on all platforms returns an error code
- 2006. This error message means <quote>server has gone
- away</quote>.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- The same thing happens with
- <function>mysqli_stmt_prepare</function>.
- </para>
- </listitem>
- </itemizedlist>
</chapter>
<!-- Keep this comment at the end of the file
Local variables: