|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22089 fgetcsv does not like \r\n inside text content
Submitted: 2003-02-06 04:46 UTC Modified: 2003-02-19 04:38 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jolyon at mways dot co dot uk Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.2.3 OS: Linux
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: jolyon at mways dot co dot uk
New email:
PHP Version: OS:


 [2003-02-06 04:46 UTC] jolyon at mways dot co dot uk
When importing a line with fgetcsv, if a text string contains \r\n characters it messes up the import as fgetcsv incorrectly believes it to be the end of the line. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-19 04:38 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2011-03-07 20:16 UTC] jbedder at gmail dot com
While doing a data dump via phpmyadmin of a sugar module this issue cropped up making import into a new version of Sugar impossible.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Apr 18 15:01:24 2021 UTC