Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6362 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72500 invoked by uid 1010); 12 Dec 2003 18:43:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72476 invoked from network); 12 Dec 2003 18:43:57 -0000 Received: from unknown (HELO vckyb1.nw.wakwak.com) (211.9.230.144) by pb1.pair.com with SMTP; 12 Dec 2003 18:43:57 -0000 Received: from at.wakwak.com (at.wakwak.com [211.9.230.135]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id 020743FEE4; Sat, 13 Dec 2003 03:43:56 +0900 (JST) Received: from [192.168.0.130] (z152.218-225-128.ppp.wakwak.ne.jp [218.225.128.152]) by at.wakwak.com (8.12.10/8.12.10/2003-09-30) with ESMTP/inet id hBCIhsnh062269; Sat, 13 Dec 2003 03:43:55 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <25BBBBC2-2CD2-11D8-8FCC-000A95CE0C62@at.wakwak.com> Content-Transfer-Encoding: 7bit Cc: PHP Internals Date: Sat, 13 Dec 2003 03:36:49 +0900 To: ilia@prohost.org X-Mailer: Apple Mail (2.606) Subject: Regarding the latest patch on fgetcsv() (stable branch) From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Hi Ilia, During the verification of bug #26600, I just noticed fgetcsv() now behaves differently than the previous release 4.3.4. After a quick examination, I found the change you made on r-1.279.2.41 is related to this issue. http://cvs.php.net/diff.php/php-src/ext/standard/file.c? r1=1.279.2.41&r2=1.279.2.42&ty=h Before the patch, the test case attached below had given the following result: array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" } Since it was patched, fgetcsv() returns the following: array(3) { [0]=> string(1) "a" [1]=> string(2) " b" [2]=> string(2) " c" } While I think the new behaviour is consistent with the CSV format used by Microsoft Excel, it'd be a BC problem also. Test case: What do you think of this? Moriyoshi