svn: /phpdoc/en/trunk/reference/pdo_mysql/ reference.xml
| From: | Adam Harvey | Date: | Tue, 14 Jun 2011 16:29:46 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pdo_mysql/ reference.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8272@lists.php.net to get a copy of this message | ||
aharvey Tue, 14 Jun 2011 16:29:46 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312158
Log:
Add a suitably scary warning, per Ferenc's e-mail on the doc commits list.
Changed paths:
U phpdoc/en/trunk/reference/pdo_mysql/reference.xml
Modified: phpdoc/en/trunk/reference/pdo_mysql/reference.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo_mysql/reference.xml 2011-06-14 16:18:40 UTC (rev 312157)
+++ phpdoc/en/trunk/reference/pdo_mysql/reference.xml 2011-06-14 16:29:46 UTC (rev 312158)
@@ -95,10 +95,20 @@
</para>
<para>
Prior to PHP 5.3.6, this element was silently ignored. The same
- behaviour can be replicated with the
+ behaviour can be partly replicated with the
<constant>PDO::MYSQL_ATTR_INIT_COMMAND</constant> driver option, as
the following example shows.
</para>
+ <warning>
+ <simpara>
+ The method in the below example can only be used with character sets
+ that share the same lower 7 bit representation as ASCII, such as
+ ISO-8859-1 and UTF-8. Users using character sets that have different
+ representations (such as UTF-16 or Big5) <emphasis>must</emphasis>
+ use the <constant>charset</constant> option provided in PHP 5.3.6
+ and later versions.
+ </simpara>
+ </warning>
<para>
<example>
<title>