#24209 [Bgs]: Closing PHP tag and line comment
| From: | derick@php.net | Date: | Mon, 16 Jun 2003 20:05:51 +0000 |
| Subject: | #24209 [Bgs]: Closing PHP tag and line comment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42081@lists.php.net to get a copy of this message | ||
ID: 24209
Updated by: derick@php.net
Reported By: nicolas dot sandri at free dot fr
Status: Bogus
Bug Type: Output Control
Operating System: FreeBSD & Mac OS X
PHP Version: 4.3.2
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
read the docs...
Previous Comments:
------------------------------------------------------------------------
[2003-06-16 15:05:36] rasmus@php.net
Known and expected. Probably even documented somewhere too.
------------------------------------------------------------------------
[2003-06-16 15:03:20] nicolas dot sandri at free dot fr
Description:
------------
See the code, end of line comment "//" and "##" does
not work with the PHP ending tag.
It could be not very important but, if you have a line
like that :
echo "<?xml version=\"1.0\"?>";
You comment it with "//" and now the PHP script exit
since it found the "?>" into line.
The only way is to use the "/* */" comment.
Reproduce code:
---------------
<?
echo "I'm ";
// ?>
echo "outside the PHP script";
?>
Expected result:
----------------
I'm outside the PHP script
Actual result:
--------------
I'm echo "outside the PHP script"; ?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24209&edit=1