ID:               32487
 User updated by:  ortho at mail dot dk
 Reported By:      ortho at mail dot dk
-Status:           Bogus
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: RH 9.0
 PHP Version:      4.3.10
 New Comment:

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 //.


Previous Comments:
------------------------------------------------------------------------

[2005-03-29 17:51:48] [EMAIL PROTECTED]

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

Reply via email to