Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12555 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18675 invoked by uid 1010); 3 Sep 2004 06:36:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94643 invoked from network); 3 Sep 2004 06:30:53 -0000 Received: from unknown (HELO jan.prima.de) (83.97.50.139) by pb1.pair.com with SMTP; 3 Sep 2004 06:30:53 -0000 Received: from BAUMBART (pD95F8D61.dip.t-dialin.net [::ffff:217.95.141.97]) (IDENT: HydraIRC, AUTH: LOGIN tobi) by jan.prima.de with esmtp; Fri, 03 Sep 2004 06:30:52 +0000 Date: Fri, 3 Sep 2004 08:28:49 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1847144666.20040903082849@marcus-boerger.de> To: David Sklar CC: internals@lists.php.net In-Reply-To: <413781EA.2000905@sklar.com> References: <411A24C7.9090507@sklar.com> <5176941.20040811204007@marcus-boerger.de> <1853829533.20040901231956@marcus-boerger.de> <413747AF.4020301@sklar.com> <93595154.20040902195211@marcus-boerger.de> <413781EA.2000905@sklar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] fputcsv() From: helly@php.net (Marcus Boerger) 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.