Bug #10661: Problem parsing a script in mac text file format

From: Date: Fri, 04 May 2001 10:19:49 +0000
Subject: Bug #10661: Problem parsing a script in mac text file format
Groups: php.dev 
Request: Send a blank email to php-dev+get-53786@lists.php.net to get a copy of this message
From: aleast@capri.it 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

« previous php.dev (#53786) next »