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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC