From: [EMAIL PROTECTED] Operating system: RedHat 7.3, current updates PHP version: 4.3.0 PHP Bug Type: Output Control Bug description: ?> is not hidden by // comment
Try the following at a shell prompt: % cat <<EOF | php ===== <?php //echo '?>'; ?> ===== EOF The output will be: ===== '; ?> ===== It looks like the parser is picking up the adjacent '?' and '>' characters inside the single quotes in the echo statement after they've been commented out using '//'. I'm willing to bet 10-to-1 this is not the correct or desired behavior. -- Edit bug report at http://bugs.php.net/?id=21765&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21765&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21765&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21765&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21765&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21765&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21765&r=support Expected behavior: http://bugs.php.net/fix.php?id=21765&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21765&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21765&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21765&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21765&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21765&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21765&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21765&r=gnused
