Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34469 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43758 invoked by uid 1010); 4 Jan 2008 19:20:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43742 invoked from network); 4 Jan 2008 19:20:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 19:20:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:38949] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/62-63281-E078E774 for ; Fri, 04 Jan 2008 14:20:47 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Jan 2008 21:20:42 +0200 Received: from [192.168.16.90] ([192.168.16.90]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 4 Jan 2008 11:20:39 -0800 Message-ID: <477E8707.8060800@zend.com> Date: Fri, 04 Jan 2008 11:20:39 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Sam Barrow CC: internals Mailing List References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> <1199466070.15292.140.camel@sbarrow-desktop> <1199466701.15292.149.camel@sbarrow-desktop> <477E7AC3.20009@zend.com> <1199472405.15292.181.camel@sbarrow-desktop> <477E822E.30108@zend.com> <1199473569.15292.195.camel@sbarrow-desktop> In-Reply-To: <1199473569.15292.195.camel@sbarrow-desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Jan 2008 19:20:39.0209 (UTC) FILETIME=[E3E80190:01C84F06] Subject: Re: [PHP-DEV] type hinting From: stas@zend.com (Stanislav Malyshev) > Ok but if someone inputs an array in the query string i have a problem Which problem? OK, you'd have string "Array" instead once you handle it. If it's a problem, then having "Array" from the start is a problem too. > with that. And I said standardized way, ie bool true outputs as "1", > float 5.20 outputs as "5.2". For objects, toString is a standardized > output but serialization is not, and for arrays no standardized output > exists. Object serialization is very standardized, it has proper handlers, etc. As for outputting arrays, indeed, 'Array' is not very meaningful, but would "Incompatible type is call in function foo() /foo/bar.php line 123" be better? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com