|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: hartmut at six dot de
New email:
PHP Version: OS:


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

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-14 09:21 UTC]
fixed in cvs
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 07:01:30 2024 UTC