Bug #18592: in C++ style comments '//' are PHP tags '<?php' and '?>' parsed

From: Date: Fri, 26 Jul 2002 13:35:19 +0000
Subject: Bug #18592: in C++ style comments '//' are PHP tags '<?php' and '?>' parsed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15336@lists.php.net to get a copy of this message
From: nepto@pobox.sk Operating system: FreeBSD, GNU/Linux PHP version: 4.2.0 PHP Bug Type: Scripting Engine problem Bug description: in C++ style comments '//' are PHP tags '<?php' and '?>' parsed Look at this small example: <?php // Do you know PHP tags? // No? So they are '<?php' and '?>'. Nice, aren't they? echo 'test'; ?> After run from shell ($ php example.php), this will print: X-Powered-By: PHP/4.2.0 Content-type: text/html '. Nice, aren't they? echo 'test'; ?> I expected, that it should print only 'test' without apostrophes. Of course, also with appropriate HTTP headers. -- Edit bug report at http://bugs.php.net/?id=18592&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18592&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18592&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18592&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18592&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18592&r=support Expected behavior: http://bugs.php.net/fix.php?id=18592&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18592&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18592&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18592&r=globals

« previous php.bugs (#15336) next »