svn: /phpdoc/en/trunk/language/types/ string.xml
| From: | Christoph Michael Becker | Date: | Tue, 26 Apr 2016 09:46:25 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/types/ string.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14115@lists.php.net to get a copy of this message | ||
cmb Tue, 26 Apr 2016 09:46:25 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339098
Log:
documented silent overflow of octal literals in interpolated strings
see <https://wiki.php.net/rfc/octal.overload-checking>
Changed paths:
U phpdoc/en/trunk/language/types/string.xml
Modified: phpdoc/en/trunk/language/types/string.xml
===================================================================
--- phpdoc/en/trunk/language/types/string.xml 2016-04-25 22:38:02 UTC (rev 339097)
+++ phpdoc/en/trunk/language/types/string.xml 2016-04-26 09:46:25 UTC (rev 339098)
@@ -167,7 +167,8 @@
<entry><literal>\[0-7]{1,3}</literal></entry>
<entry>
the sequence of characters matching the regular expression is a
- character in octal notation
+ character in octal notation, which silently overflows to fit in a byte
+ (e.g. "\400" === "\000")
</entry>
</row>
<row>
@@ -202,7 +203,7 @@
details.
</para>
</sect3>
-
+
<sect3 xml:id="language.types.string.syntax.heredoc">
<title>Heredoc</title>
@@ -210,7 +211,7 @@
A third way to delimit <type>string</type>s is the heredoc syntax:
<literal><<<</literal>. After this operator, an identifier is
provided, then a newline. The <type>string</type> itself follows, and then
- the same identifier again to close the quotation.
+ the same identifier again to close the quotation.
</simpara>
<simpara>