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

Pull Requests

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