php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50573 fgetcsv cann't process "\\def"
Submitted: 2009-12-25 03:47 UTC Modified: 2009-12-29 12:16 UTC
From: dulao5 at gmail dot com Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.2.12 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.
Password:
Status:
Package:
Bug Type:
Summary:
From: dulao5 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-25 03:47 UTC] dulao5 at gmail dot com
Description:
------------
fgetcsv cann't process "\\def" .

(But "\\def" is OK).


Reproduce code:
---------------
php -r "fputcsv(STDOUT, array('abc\\def', 'field2'));" | php -r "var_dump(fgetcsv(STDIN));"


Expected result:
----------------
array(2) {
  [0]=>
  string(13) "abc\def"
  [1]=>
  string(6) "field2"
}


Actual result:
--------------
array(1) {
  [0]=>
  string(22) "abc\def",field2
"
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-29 12:16 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #48507
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC