ID:               43531
 Updated by:       [EMAIL PROTECTED]
 Reported By:      isawhim at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Strings related
 Operating System: Linux
 PHP Version:      5.2.5
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See
http://br.php.net/manual/en/language.types.string.php#language.types.string.syntax.single


Previous Comments:
------------------------------------------------------------------------

[2007-12-07 22:20:14] isawhim at gmail dot com

Description:
------------
Using an "Escape" \ in certain quotes, results in literal translation.

Tested on \r \n \t inside Single and Double quotes.

Single Quotes does not escape.
Double Quotes escapes.

I can not find documentation to explain this behaviour, or warnings on
pages, related to places where one might try to use an escape.

Processed all Escapes inside any single ' and double " quotes.
or...
{Possible feature request}
SingleQuoteEscape=(all|none|quotes)
DoubleQuoteEscape=(all|none|quotes)

All = \r \n \t \\ \' {\"}
None = literal quoted text, must use CHR strings (Iso), No like-quotes
allowed.
Quotes = if {'} then \' escape, if {"} then \" escape

Reproduce code:
---------------
<?
$MyString1 = '\tTest1\r\nABC1';
$MyString2 = "\tTest2\r\nABC2";

echo($MyString1.'<BR>'.$MyString2.);
?>

Expected result:
----------------
Expected Output:
        Test1
ABC1
        Test2
ABC2

Actual result:
--------------
Actual Output:

\tTest1\r\nABC1
        Test2
ABC2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43531&edit=1

Reply via email to