PHP 4.0 Bug #3059: print <<<EOF doesn't parse \n correctly
| From: | atlee at mailmall dot net | Date: | Tue, 28 Dec 1999 17:24:49 +0000 |
| Subject: | PHP 4.0 Bug #3059: print <<<EOF doesn't parse \n correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14092@lists.php.net to get a copy of this message | ||
From: atlee@mailmall.net
Operating system: SuSE 6.2/Apache 1.3.9
PHP version: 4.0 Beta 3
PHP Bug Type: Misbehaving function
Bug description: print <<<EOF doesn't parse \n correctly
The script:
<?
print <<<EOF
This is some text\n
This is some more \ttabbed text
EOF;
?>
The output:
\\This is some textn This is some more ttabbed text
As you can see, backslashes are being placed at the front of the line, with the escaped character
being printed as normal.