#30097 [Opn->Fbk]: fgetcsv() does not recognize Mac EOL character (\r) as the EOL marker

From: Date: Thu, 23 Sep 2004 19:42:52 +0000
Subject: #30097 [Opn->Fbk]: fgetcsv() does not recognize Mac EOL character (\r) as the EOL marker
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66613@lists.php.net to get a copy of this message
ID: 30097 Updated by: iliaa@php.net Reported By: dbeckham at dealnews dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Mac OS X 10.3.5 PHP Version: 5.0.1 New Comment: Did you try enable automatic EOL detection. Previous Comments: ------------------------------------------------------------------------ [2004-09-15 19:17:01] dbeckham at dealnews dot com Description: ------------ fgetcsv() does not recognize the Macintosh EOL character (\r) as a legitimate EOL marker for a CSV file. Reproduce code: --------------- Read any CSV file that uses Mac EOL markers using fgetcsv(). Expected result: ---------------- fgetcsv() should recognized Mac EOL (\r) markers as the end of a CSV record. Actual result: -------------- The entire file is read as if it's a single CSV record. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30097&edit=1

« previous php.bugs (#66613) next »