Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20053 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67483 invoked by uid 1010); 16 Nov 2005 07:38:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67468 invoked from network); 16 Nov 2005 07:38:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2005 07:38:26 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:59250] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CB/0C-07637-1F1EA734 for ; Wed, 16 Nov 2005 02:38:26 -0500 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id jAG7bv0H017804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 Nov 2005 23:37:58 -0800 Message-ID: <437AE1D4.9070109@lerdorf.com> Date: Tue, 15 Nov 2005 23:37:56 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051025) MIME-Version: 1.0 To: Derick Rethans CC: Andrei Zmievski , Wez Furlong , Jani Taskinen , internals@lists.php.net References: <437A0D24.6030701@caedmon.net> <20051115181307.18c2b27b@localhost.localdomain> <437A1820.8060902@lerdorf.com> <437A1BD1.9030309@lerdorf.com> <4e89b4260511150942g6f3cab3boad1c09eb1c1e7318@mail.gmail.com> <5D7AB792-4788-4C97-B523-7E15DAAB16E9@gravitonic.com> <437ADF38.9050900@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] date() behaviour changed in 5.1? From: rasmus@lerdorf.com (Rasmus Lerdorf) Derick Rethans wrote: > On Tue, 15 Nov 2005, Rasmus Lerdorf wrote: > >> Derick Rethans wrote: >>> On Tue, 15 Nov 2005, Andrei Zmievski wrote: >>> >>>> Perhaps, but I would maintain that passing "123abc" and having it >>>> interpreted >>>> as 123 is still wrong. >>> Yeah, I lean that way too, although trailing whitespace should be supported >>> IMO. >> I don't like having two different ways to cast things and I think we would >> break a lot of stuff if (int)"123abc" no longer resulted in 123. > > Sure, I'm not suggesting to change the cast. But it's IMO good to treat > anything except trailing zeroes as "broken" for these kinds of things in > the parameter parsing API. That seems rather arbitrary to me. So trailing spaces or trailing whitespace? Tabs ok? Carriage returns too? If not, why not? Why not just have a single consistent way to cast things? -Rasmus