Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95538 invoked by uid 1010); 12 Dec 2003 19:02:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95504 invoked from network); 12 Dec 2003 19:02:46 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 12 Dec 2003 19:02:46 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.232.175]) by colo.lerdorf.com (8.12.10/8.12.10/Debian-5) with ESMTP id hBCJ2hv8008562; Fri, 12 Dec 2003 11:02:43 -0800 Date: Fri, 12 Dec 2003 11:02:38 -0800 (PST) X-X-Sender: rasmus@thinkpad.lerdorf.com To: Ilia Alshanetsky cc: Moriyoshi Koizumi , PHP Internals In-Reply-To: <200312121407.48578.ilia@prohost.org> Message-ID: References: <25BBBBC2-2CD2-11D8-8FCC-000A95CE0C62@at.wakwak.com> <200312121407.48578.ilia@prohost.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on colo Subject: Re: [PHP-DEV] Re: Regarding the latest patch on fgetcsv() (stable branch) From: rasmus@php.net (Rasmus Lerdorf) On Fri, 12 Dec 2003, Ilia Alshanetsky wrote: > That said, the whole space trimming behavior seems a little unusual since it > will corrupt content especially if said content contains binary data. IMHO > the data read by fgetcsv() should be fetched in such a manner so that the > original string can be recreated. I agree that it would be a good idea to provide a mechanism to do that, but at this point I don't think we should be changing the behaviour of fgetcsv() in neither the stable branch nor the HEAD branch. I'd add a new binary-safe version of the function instead for this. Or an optional arg, but fgetcsv() already has 2 optional args. -Rasmus