Bug #12323 Updated: // comment tag does not work
| From: | lael at evolutionmc dot com | Date: | Tue, 24 Jul 2001 19:40:01 +0000 |
| Subject: | Bug #12323 Updated: // comment tag does not work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60896@lists.php.net to get a copy of this message | ||
ID: 12323
User updated by: lael@evolutionmc.com
Reported By: lael@evolutionmc.com
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:
For those asking for an example of the script and the
output.
Using the following:
<code>
<?php
print("Working so far <BR>");
print("Still working next line is going to be a
comment<BR>");
// This line should be a comment
print("This is the next line past the comment<BR>");
?>
</code>
I get the following result:
<browser output>
// This line should be a comment print("This is the next
line past the comment
"); Working so far
Still working next line is going to be a comment
<end of browser output>
Thanking everyone for the help. Greatly appreciate it.
Lael
Previous Comments:
------------------------------------------------------------------------
[2001-07-24 14:28:59] lael@evolutionmc.com
Also in reply to the other suggestions regarding one liners
vs multiple line comments:
The lines I have commented are all on their own line and
are one liners. More or less, anywhere I use a "//" to
comment, the entire line is displayed to the user. The
following two scripts will give me the same result.
<?php
// This comment will show on the web page
?>
<?php
print('// This comment will show on the web page');
?>
I noticed in the documentation that the "//" was considered
a C++ style of commenting. Do I possibly need a particular
module or directive to say that "//" is a comment?
Thanks,
Lael
------------------------------------------------------------------------
[2001-07-24 14:27:13] lael@evolutionmc.com
I received an email stating that it could not be reproduced
on a RH Linux 7 machine. This problem is specific to Mac
OS X client, so I'm sure that you were unable to reproduce
it on your box.
Either way, this is definately happening and is not "bogus"
as you said.
------------------------------------------------------------------------
[2001-07-24 14:16:26] andy@php.net
unable to reproduce on RH Linux 7.
This sounds very bogus.
------------------------------------------------------------------------
[2001-07-23 18:35:15] cnewbill@php.net
Okay it would happen on more than one liners.
basically if you have a ?> on the same line as the // comment it will do this.
I know there is some other bugs on this same problem, but I don't have the numbers handy.
-Chris
------------------------------------------------------------------------
[2001-07-23 18:31:24] cnewbill@php.net
The only situation I can think of where this would happen is
<?php // print "stuff"; ?>
i.e. one liners
If this is your case this is expected behavior IIRC. Otherwsie submit a small script that
reproduces the problem.
-Chris
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12323
Edit this bug report at http://bugs.php.net/?id=12323&edit=1