#30317 [Opn->Bgs]: comments - here document syntax
| From: | derick@php.net | Date: | Mon, 04 Oct 2004 11:10:40 +0000 |
| Subject: | #30317 [Opn->Bgs]: comments - here document syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67075@lists.php.net to get a copy of this message | ||
ID: 30317
Updated by: derick@php.net
Reported By: matteo_tullo at hotmail dot it
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Linux, Windows 98, Solaris
PHP Version: 4.3.9
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
.
Previous Comments:
------------------------------------------------------------------------
[2004-10-04 12:20:52] matteo_tullo at hotmail dot it
Description:
------------
putting a comment on the same line of a here document terminator
provokes a parse error
Reproduce code:
---------------
<?php
PRINT <<<EOF
a
EOF;//comment
?>
Expected result:
----------------
I expected the script to print:
a
Actual result:
--------------
parse error, unexpected $ in <filename> on line 5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30317&edit=1