Bug #68160 [Opn->Nab]: Quoting Issue

From: Date: Sun, 05 Oct 2014 21:42:30 +0000
Subject: Bug #68160 [Opn->Nab]: Quoting Issue
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187867@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 Updated by: nikic@php.net Reported by: willy at brimbox dot com Summary: Quoting Issue -Status: Open +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: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#187867) next »