[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-21 Thread Christoph Becker
Am 21.11.2014 um 02:53 schrieb Tjerk Meesters: >> On 21 Nov 2014, at 02:14, Christoph Becker wrote: >> >> Apparently, there is a somewhat hidden bug, see >> for a simplified test script. The expected result is >> >> string(14) ""a""b","a\""b"" >> >> or maybe >> >> strin

[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-20 Thread Tjerk Meesters
> On 21 Nov 2014, at 02:14, Christoph Becker wrote: > > Tjerk Meesters wrote: > >>> On 20 Nov 2014, at 00:26, Christoph Becker wrote: >>> >>> Are you aware of ? It seems this >>> very inconsistency has been reported a few years ago, but has been >>> tag

[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-20 Thread Christoph Becker
Tjerk Meesters wrote: >> On 20 Nov 2014, at 00:26, Christoph Becker wrote: >> >> Are you aware of ? It seems this >> very inconsistency has been reported a few years ago, but has been >> tagged as "Wont fix" back then. > > Actually that bug report seems to

[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-19 Thread Tjerk Meesters
> On 20 Nov 2014, at 00:26, Christoph Becker wrote: > > Tjerk Meesters wrote: > >> Hi list, >> >> As I was fiddling with CSV data reading and writing I noticed that fgetcsv() >> is inherently incompatible with fputcsv() when it comes to the enclosure >> escape character that’s used. >> >> E

[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-19 Thread Christoph Becker
Tjerk Meesters wrote: > Hi list, > > As I was fiddling with CSV data reading and writing I noticed that fgetcsv() > is inherently incompatible with fputcsv() when it comes to the enclosure > escape character that’s used. > > Example: http://3v4l.org/LHEZj > > The above example code demonstrat

Re: [PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-19 Thread Rowan Collins
Tjerk Meesters wrote on 19/11/2014 12:20: Hi list, As I was fiddling with CSV data reading and writing I noticed that fgetcsv() is inherently incompatible with fputcsv() when it comes to the enclosure escape character that’s used. Example: http://3v4l.org/LHEZj The above example code demonst

[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-19 Thread Tjerk Meesters
Hi list, As I was fiddling with CSV data reading and writing I noticed that fgetcsv() is inherently incompatible with fputcsv() when it comes to the enclosure escape character that’s used. Example: http://3v4l.org/LHEZj The above example code demonstrates how, by default, fputcsv() encodes a

[PHP-DEV] Re: fgetcsv incompatible with fputcsv

2014-11-19 Thread Tjerk Meesters
Hi list, As I was fiddling with CSV data reading and writing I noticed that fgetcsv() is inherently incompatible with fputcsv() when it comes to the enclosure escape character that’s used. Example: http://3v4l.org/LHEZj The above example code demonstrates how, by default, fputcsv() encodes a