#21765 [Bgs]: ?> is not hidden by // comment

From: Date: Mon, 20 Jan 2003 09:09:34 +0000
Subject: #21765 [Bgs]: ?> is not hidden by // comment
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30632@lists.php.net to get a copy of this message
ID: 21765 Updated by: derick@php.net Reported By: mattb@columbia.edu Status: Bogus Bug Type: Output Control Operating System: RedHat 7.3, current updates PHP Version: 4.3.0 New Comment: http://www.php.net/manual/en/language.basic-syntax.comments.php Previous Comments: ------------------------------------------------------------------------ [2003-01-20 03:08:18] derick@php.net 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 ------------------------------------------------------------------------ [2003-01-20 03:07:25] mattb@columbia.edu 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 this bug report at http://bugs.php.net/?id=21765&edit=1

« previous php.bugs (#30632) next »