php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31673 Comments getting parsed
Submitted: 2005-01-24 00:38 UTC Modified: 2005-01-24 00:51 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: php at cash-area dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Linux and Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at cash-area dot de
New email:
PHP Version: OS:

 

 [2005-01-24 00:38 UTC] php at cash-area dot de
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:
--------------
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-24 00:51 UTC] tony2001@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See: http://www.php.net/manual/en/language.basic-syntax.comments.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 07:01:32 2024 UTC