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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 18 08:00:02 2025 UTC