ID: 24209 Updated by: [EMAIL PROTECTED] Reported By: nicolas dot sandri at free dot fr -Status: Open +Status: Bogus Bug Type: Output Control Operating System: FreeBSD & Mac OS X PHP Version: 4.3.2 New Comment:
Known and expected. Probably even documented somewhere too. Previous Comments: ------------------------------------------------------------------------ [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
