Re: fputcsv()

From: Date: Fri, 03 Sep 2004 06:28:49 +0000
Subject: Re: fputcsv()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-12555@lists.php.net to get a copy of this message
Hello David, it is obviously fgetcsv(), see last comment on #29719 [Opn]: fgetcsv - double quotes issue marcus Thursday, September 2, 2004, 10:26:18 PM, you wrote: > Marcus Boerger wrote: >> Hello David, >> >> i looked up the fputcsv() magic in the file manually and agree that this >> is fairly correct (as i wrote before). But when i execute the test the >> second var_export() is supposed to show the input from the .phpt file. >> Unfortunatley i get a FAIL from run-tests.php: >> >> FAIL various fputcsv() functionality tests >> [ext/standard/tests/file/fputcsv.phpt] >> 040+ 16 => 'aaa,"\\"bbb",ccc', >> 041+ 17 => 'aaa"\\"a""","bbb"', >> 042+ 18 => '"\\""","aaa"""', >> 043+ 19 => '"\\"""",aaa >> 044+ ', >> 040- 16 => 'aaa,"\\"bbb,ccc', >> 041- 17 => 'aaa"\\"a","bbb"', >> 042- 18 => '"\\"","aaa"', >> 043- 19 => '"\\""",aaa',marcus@frodo /usr/src/php-cvs $ >> >> Care to look into this (done with current HEAD)? > I will poke about in the guts of fgetcsv and see what I can find. There > have been some changes to fgetcsv() in the PHP_4_3 branch, perhaps they > will fix things.

« previous php.internals (#12555) next »