php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42875 End tag in simple comment throw parse error
Submitted: 2007-10-06 10:16 UTC Modified: 2007-10-06 10:20 UTC
From: php at milicevic dot fr Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.4 OS: Windows XP
Private report: No CVE-ID: None
 [2007-10-06 10:16 UTC] php at milicevic dot fr
Description:
------------
Hi,

Note: 
# ?> same problem

Problem with PHP 5.1.4 and PHP 5.2.4

Reproduce code:
---------------
<?php
if (0)
{ 
    // just a comment ?>
}
?>




Expected result:
----------------
 

Actual result:
--------------
Parse error: syntax error, unexpected $end in C:\...\bugphp.php on line 7

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-06 10:20 UTC] johannes@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

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 17 18:00:03 2025 UTC