#31673 [NEW]: Comments getting parsed
| From: | php at cash-area dot de | Date: | Sun, 23 Jan 2005 23:38:53 +0000 |
| Subject: | #31673 [NEW]: Comments getting parsed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72712@lists.php.net to get a copy of this message | ||
From: php at cash-area dot de
Operating system: Linux and Windows
PHP version: Irrelevant
PHP Bug Type: *General Issues
Bug description: Comments getting parsed
Description:
------------
short_open_tag = On
Closetags (and maybe other stuff) will get parsed if you're using // and #
as comment.
Just look at the code to see it with your own eyes ;)
Reproduce code:
---------------
This will echo a "?>"
<?php
//?>
?>
This too:
<?php
#?>
?>
This will echo nothing
<?php
/*?>*/
?>
Expected result:
----------------
Nothing
Actual result:
--------------
?>
--
Edit bug report at http://bugs.php.net/?id=31673&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31673&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31673&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31673&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31673&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31673&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31673&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31673&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31673&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31673&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31673&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31673&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31673&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31673&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31673&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31673&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31673&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31673&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31673&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31673&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31673&r=mysqlcfg