Bug #68160 [Nab]: Quoting Issue
| From: | willy at brimbox dot com | Date: | Sun, 05 Oct 2014 22:01:14 +0000 |
| Subject: | Bug #68160 [Nab]: Quoting Issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-187869@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68160&edit=1
ID: 68160
User updated by: willy at brimbox dot com
Reported by: willy at brimbox dot com
Summary: Quoting Issue
Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Centos
PHP Version: 5.4.33
Block user comment: N
Private report: N
New Comment:
Thanks, now I know, sorry to bother you.
Previous Comments:
------------------------------------------------------------------------
[2014-10-05 21:42:30] nikic@php.net
Single quoted strings aren't subject to variable and escape sequence parsing (\' and \\
notwithstanding). See Note on http://de1.php.net/manual/en/language.types.string.php#language.types.string.syntax.single.
------------------------------------------------------------------------
[2014-10-05 21:32:06] willy at brimbox dot com
Description:
------------
I have found that single quotes are behaving different than double quotes on escaped new lines. I
have tested this in 5.4.32 and 5.4.18. Forgive me if this has been fixed or reported, or is
expected behavior, and for not testing it in 5.4.33.
Test script:
---------------
echo ord('\n');
echo " ";
echo ord("\n");
Expected result:
----------------
10 10
Actual result:
--------------
92 10
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68160&edit=1