[PHP-DEV] Bug #10661: Problem parsing a script in mac text file format From: aleast <email protected>
Date: 05/04/01

From: aleast <email protected>
Operating system: Linux 2.2.16 - RedHat 6.2
PHP version: 4.0.5
PHP Bug Type: *General Issues
Bug description: Problem parsing a script in mac text file format

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.

-- 
Edit Bug report at: http://bugs.php.net/?id=10661&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>