mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
documented silent overflow of octal literals in interpolated strings
see <https://wiki.php.net/rfc/octal.overload-checking> git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339098 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
626faa38dc
commit
bb3e737c4d
1 changed files with 4 additions and 3 deletions
|
@ -167,7 +167,8 @@ echo 'Variables do not $expand $either';
|
|||
<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 @@ echo 'Variables do not $expand $either';
|
|||
details.
|
||||
</para>
|
||||
</sect3>
|
||||
|
||||
|
||||
<sect3 xml:id="language.types.string.syntax.heredoc">
|
||||
<title>Heredoc</title>
|
||||
|
||||
|
@ -210,7 +211,7 @@ echo 'Variables do not $expand $either';
|
|||
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>
|
||||
|
|
Loading…
Reference in a new issue