[PHP-DEV] PHP 4.0 Bug #3059: print <<<EOF doesn't parse \n correctly From: atlee <email protected>
Date: 12/28/99

From: atlee <email protected>
Operating system: SuSE 6.2/Apache 1.3.9
PHP version: 4.0 Beta 3
PHP Bug Type: Misbehaving function
Bug description: print &lt;&lt;&lt;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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>