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
 [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: Sat May 11 00:01:31 2024 UTC