php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14651 PHP close tag (?>) in a comment acts as a close; this did not happen in 4.0.x
Submitted: 2001-12-21 15:32 UTC Modified: 2001-12-21 16:09 UTC
From: mike at m2wh dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.0 OS: FreeBSD 3.4-REL
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: mike at m2wh dot com
New email:
PHP Version: OS:

 

 [2001-12-21 15:32 UTC] mike at m2wh dot com
In 4.0.x, you could do something like:

<?
echo "hi"; //<does this echo hi?>
?>

and it would work fine.

In 4.1.0 this causes a parse error on the last line of the script.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-21 16:09 UTC] sander@php.net
Indeed, this is not a bug.
http://www.php.net/manual/en/language.basic-syntax.comments.php
This hasn't changed in 4.1.0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 11:01:34 2024 UTC