From: nicolas dot sandri at free dot fr Operating system: FreeBSD & Mac OS X PHP version: 4.3.2 PHP Bug Type: Output Control Bug description: Closing PHP tag and line comment
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 bug report at http://bugs.php.net/?id=24209&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24209&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24209&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24209&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24209&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24209&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24209&r=support Expected behavior: http://bugs.php.net/fix.php?id=24209&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24209&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24209&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24209&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24209&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24209&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24209&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24209&r=gnused
