Req #5804 [Opn->Bgs]: parser error if any spaces follow indentifier in with here doc syntax
| From: | johannes@php.net | Date: | Fri, 06 Aug 2010 23:39:49 +0000 |
| Subject: | Req #5804 [Opn->Bgs]: parser error if any spaces follow indentifier in with here doc syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153184@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=5804&edit=1
ID: 5804
Updated by: johannes@php.net
Reported by: goforth at worldempires dot com
Summary: parser error if any spaces follow indentifier in
with here doc syntax
-Status: Open
+Status: Bogus
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux
PHP Version: 4.0.0
Block user comment: N
New Comment:
Wechanged the parser quite heavil over ten years. closing this bug.
Previous Comments:
------------------------------------------------------------------------
[2000-07-27 13:00:57] hholzgra@php.net
feature request: whitespace behind a label
shouldn't matter
------------------------------------------------------------------------
[2000-07-27 12:45:23] stas@php.net
label should be immediately followed by newline (i.e., no spaces).
------------------------------------------------------------------------
[2000-07-27 12:00:25] hholzgra@php.net
"... such as here with the space represented by a # ..."
please do a s/#/ / before reading the statement
to see what it is all about
re-opened
------------------------------------------------------------------------
[2000-07-27 11:07:53] stas@php.net
EOD# is not a valid identifier.
------------------------------------------------------------------------
[2000-07-27 00:34:20] goforth at worldempires dot com
When using the multi-line echo (here doc syntax) if there are any spaces
immediatly following the indenifier, such as here with the space
represented by a #
echo <<<EOD#
then php will give the following error message.
Parse error: parse error, expecting
','' or ';''
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=5804&edit=1