#21680 [NEW]: heredoc breaks with mac text format
| From: | emil at noget dot net | Date: | Thu, 16 Jan 2003 08:49:28 +0000 |
| Subject: | #21680 [NEW]: heredoc breaks with mac text format | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-30235@lists.php.net to get a copy of this message | ||
From: emil@noget.net
Operating system: FreeBSD 4
PHP version: 4.3.0
PHP Bug Type: Strings related
Bug description: heredoc breaks with mac text format
It appears that the heredoc string type breaks if the script is in mac text
format.
This has been noticed before
http://www.zend.com/lists/php-dev/200110/msg00815.html,
but i havn't been
able to find a bugreport?
Im working in Windows with UltraEdit, and the following code breaks, when
I use UltrEdit to convert from dos format to mac format:
<?php
echo <<<EOD
foo
EOD;
?>
This error is produced:
Parse error: parse error, unexpected $ in
/usr/home/nej/public_html/heredoc.php on line 5
--
Edit bug report at http://bugs.php.net/?id=21680&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21680&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21680&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21680&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21680&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21680&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21680&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21680&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21680&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21680&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21680&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21680&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21680&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21680&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21680&r=gnused