Bug #17895: Strange bug about comments
| From: | php at ak-dev dot com | Date: | Fri, 21 Jun 2002 11:26:54 +0000 |
| Subject: | Bug #17895: Strange bug about comments | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11657@lists.php.net to get a copy of this message | ||
From: php@ak-dev.com
Operating system: Windows 2000
PHP version: 4.1.2
PHP Bug Type: Scripting Engine problem
Bug description: Strange bug about comments
I think I have found a strange bug, but I am not sure it is one!
I explain my problem:
//?>
#?>
If you insert one of those two previous lines, the parse will crash!
In my mind, # or // are 'one line comments' and in this way, it has to be
impossible to execute code on the same line after those comment tags, but
here it is possible!
So it is very dangerous to put //?> or #? in your source code!
In some cases, it does a crash and it results a parse error, and in others
cases it displays source code of the file!!
In my mind, it is not normal...
--
Edit bug report at http://bugs.php.net/?id=17895&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17895&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17895&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17895&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17895&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17895&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17895&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17895&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17895&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17895&r=globals