php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32729 comment linie with string include '?>'
Submitted: 2005-04-16 18:41 UTC Modified: 2005-04-16 18:49 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: bato3 at poczta dot fm Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.3 OS: ALL
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bato3 at poczta dot fm
New email:
PHP Version: OS:

 

 [2005-04-16 18:41 UTC] bato3 at poczta dot fm
Description:
------------
If I coment line witch string, who include '?>' script crashed (Sorry tor my english)

Reproduce code:
---------------
<?php //1
                                                                                                                             
//print highlight_string('<?php if(foo) ?>');
                                                                                                                             
?>
<?php //2
                                                                                                                             if($foo){
//print highlight_string('<?php if(foo) ?>');
                                                                                                                             }
?>//line 5


Expected result:
----------------
1: Script: OK; data: bad
2: Script: Error

Actual result:
--------------
1: ');

2: Parse error: parse error in /var/www/html/97.php on line 6
2: Unexpected end file

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-16 18:44 UTC] bato3 at poczta dot fm
I'm forgot. That bug is in all version php, who i'm working
 [2005-04-16 18:49 UTC] derick@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

Read again our documentation on commenting methods.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 02 11:00:03 2025 UTC