php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8258 fgetcsv() fails with empty tab delimited fields
Submitted: 2000-12-14 08:28 UTC Modified: 2000-12-14 09:21 UTC
From: hartmut at six dot de Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.3pl1 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 16 = ?
Subscribe to this entry?

 
 [2000-12-14 08:28 UTC] hartmut at six dot de
from the manual annotations to fgetcsv(): 
(reported by poc@baden-online.de)

fgetcsv() seems to ignore zero-length fields when working 
with tabs as separators (3.0.12). 
Instead work around this with fgets() and do an explode() 
afterwards, this gets you the right thing.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-14 09:21 UTC] hholzgra@php.net
fixed in cvs
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Oct 05 09:05:52 2022 UTC