Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20024 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80099 invoked by uid 1010); 15 Nov 2005 17:46:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80084 invoked from network); 15 Nov 2005 17:46:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2005 17:46:43 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:53215] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FA/6A-07637-20F1A734 for ; Tue, 15 Nov 2005 12:46:43 -0500 Received: from [207.126.233.18] (rasmus2.corp.yahoo.com [207.126.233.18]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id jAFHkL4h003887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 Nov 2005 09:46:21 -0800 Message-ID: <437A1EEB.7@lerdorf.com> Date: Tue, 15 Nov 2005 09:46:19 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051025) MIME-Version: 1.0 To: Wez Furlong CC: 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> In-Reply-To: <4e89b4260511150942g6f3cab3boad1c09eb1c1e7318@mail.gmail.com> 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) Wez Furlong wrote: > I can't think of any case where you'd want to error out when given > '100 ' if it would accept '100' quite happily. > > I'd lean towards a single cast semantic for this, and remove that > strict checking flag from zend_parse_parameters(); lazy dynamic type > handling for primitive data types is one of the cornerstones of PHP > IMO. Yeah, I am leaning towards that as well. I don't like the inconsistency between direct casting via (int) vs. zend_parse_parameter's strict casting. It is much simpler to explain that functions will cast to the required parameter type and have one consistent way to cast things. -Rasmus