php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10661 Problem parsing a script in mac text file format
Submitted: 2001-05-04 06:19 UTC Modified: 2001-05-04 06:22 UTC
From: aleast at capri dot it Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.5 OS: Linux 2.2.16 - RedHat 6.2
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: aleast at capri dot it
New email:
PHP Version: OS:

 

 [2001-05-04 06:19 UTC] aleast at capri dot it
Executing a script like this in mac file text format (EOF ==
'\r'):


<?php
 
$arr = array(
        "test1" // comment
);
 
foreach ($arr as $val) {
        echo $val."<br>\n";
}
 
?>


I receive this output:


// comment
);

foreach ($arr as $val) {
	echo $val."<br>\n";
}


This only appears if the comment is present.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-04 06:22 UTC] derick@php.net
This should be fixed in the current CVS, please reopen if this does not work with the latest CVS version (or snapshot from snaps.php.net)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 16:01:32 2024 UTC