svn: /phpdoc/en/trunk/reference/strings/functions/ chr.xml
| From: | Christoph Michael Becker | Date: | Fri, 01 Jul 2016 20:07:17 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ chr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14272@lists.php.net to get a copy of this message | ||
cmb Fri, 01 Jul 2016 20:07:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339537
Log:
Address #63510: Integer overflow with chr
Bug: https://bugs.php.net/63510 (Assigned) Integer overflow
with chr
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/chr.xml
Modified: phpdoc/en/trunk/reference/strings/functions/chr.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/chr.xml 2016-07-01 09:07:57 UTC (rev 339536)
+++ phpdoc/en/trunk/reference/strings/functions/chr.xml 2016-07-01 20:07:17 UTC (rev 339537)
@@ -29,7 +29,8 @@
<term><parameter>ascii</parameter></term>
<listitem>
<para>
- The ascii code.
+ A number which is bitwise and'ed with 255 to retrieve the extended ASCII
+ code.
</para>
</listitem>
</varlistentry>
@@ -61,6 +62,22 @@
]]>
</programlisting>
</example>
+ <example>
+ <title>Overflow behavior</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo chr(-159), chr(833), PHP_EOL;
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+aA
+]]>
+ </screen>
+ </example>
</para>
</refsect1>