svn: /phpdoc/en/trunk/reference/strings/functions/ number-format.xml
| From: | Kalle Sommer Nielsen | Date: | Fri, 22 Oct 2010 02:05:08 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ number-format.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7284@lists.php.net to get a copy of this message | ||
kalle Fri, 22 Oct 2010 02:05:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304600
Log:
Fixed bug #53113 (number_format(): wrong usage of term "character" in multi-byte context)
Bug: http://bugs.php.net/53113 (Open) number_format(): wrong
usage of term "character" in multi-byte context
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/number-format.xml
Modified: phpdoc/en/trunk/reference/strings/functions/number-format.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/number-format.xml 2010-10-21 21:26:41 UTC (rev
304599)
+++ phpdoc/en/trunk/reference/strings/functions/number-format.xml 2010-10-22 02:05:08 UTC (rev
304600)
@@ -85,12 +85,18 @@
Sets the thousands separator.
</para>
<para>
- Only the first character of <parameter>thousands_sep</parameter>
+ Only the first byte of <parameter>thousands_sep</parameter>
is used. For example, if you use <literal>&amp;</literal> as
<parameter>thousands_sep</parameter> on the number
<literal>1000</literal>, <function>number_format</function> will
return <literal>1&000</literal>.
</para>
+ <para>
+ As noted above, this function only takes the first byte for the
+ separator. This means that multibyte characters will
+ <emphasis>NOT</emphasis> work, resulting in a broken multibyte
+ sequence.
+ </para>
</listitem>
</varlistentry>
</variablelist>