#30097 [NEW]: fgetcsv() does not recognize Mac EOL character (\r) as the EOL marker
From: dbeckham at dealnews dot com
Operating system: Mac OS X 10.3.5
PHP version: 5.0.1
PHP Bug Type: Filesystem function related
Bug description: fgetcsv() does not recognize Mac EOL character (\r) as the EOL marker
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 bug report at http://bugs.php.net/?id=30097&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30097&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30097&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30097&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30097&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30097&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30097&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30097&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30097&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30097&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30097&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30097&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30097&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30097&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30097&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30097&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30097&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30097&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30097&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30097&r=mysqlcfg
Thread (3 messages)
- dbeckham at dealnews dot com