#32487 [Csd->Bgs]: ignore comment and drop out php mode
| From: | tony2001@php.net | Date: | Tue, 29 Mar 2005 16:36:26 +0000 |
| Subject: | #32487 [Csd->Bgs]: ignore comment and drop out php mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75995@lists.php.net to get a copy of this message | ||
ID: 32487
Updated by: tony2001@php.net
Reported By: ortho at mail dot dk
-Status: Closed
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: RH 9.0
PHP Version: 4.3.10
Previous Comments:
------------------------------------------------------------------------
[2005-03-29 18:08:16] ortho at mail dot dk
arrg - the man page about this actually says this !
never dreamed that there was such a special case where a comment is not
a true comment if a ?> is encountered after a 1-line //.
------------------------------------------------------------------------
[2005-03-29 17:51:48] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
http://www.php.net/manual/en/language.basic-syntax.comments.php
------------------------------------------------------------------------
[2005-03-29 17:43:03] ortho at mail dot dk
Description:
------------
when encountering code below, php
1) ignores the comment
2) apparently leave php-mode
note: error 2) makes the rest of the php-script code show up in browser
(as result of leaving php)
Reproduce code:
---------------
// $Idxhtm = str_replace('<?php print $I_fmGetpage; ?>', '#pgnum',
$Idxhtm));
notes:
allthouh it is commented out, the code intended to replace a php-tag in
a string containing a html form. The php-tag is single quoted and should
be replaced with #pgnum - no fuzz.
removing commented line solves problem.
Expected result:
----------------
nuthin - it should be regarded as a comment by php
Actual result:
--------------
sleepless hours - dry throat - nervous breakdown and backpain
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32487&edit=1