Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20052 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65732 invoked by uid 1010); 16 Nov 2005 07:35:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65717 invoked from network); 16 Nov 2005 07:35:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2005 07:35:07 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:35358] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A8/CB-07637-921EA734 for ; Wed, 16 Nov 2005 02:35:06 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id jAG7Yl6h021218; Wed, 16 Nov 2005 08:34:47 +0100 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id jAG7YfWL021210; Wed, 16 Nov 2005 08:34:42 +0100 Date: Wed, 16 Nov 2005 08:34:41 +0100 (CET) X-X-Sender: derick@localhost To: Rasmus Lerdorf cc: Andrei Zmievski , Wez Furlong , Jani Taskinen , internals@lists.php.net In-Reply-To: <437ADF38.9050900@lerdorf.com> Message-ID: 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> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] date() behaviour changed in 5.1? From: derick@php.net (Derick Rethans) 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. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org