Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34485 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7925 invoked by uid 1010); 4 Jan 2008 20:19:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7902 invoked from network); 4 Jan 2008 20:19:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 20:19:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.184 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.184 rv-out-0910.google.com Received: from [209.85.198.184] ([209.85.198.184:16281] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/89-63281-73E8E774 for ; Fri, 04 Jan 2008 14:51:22 -0500 Received: by rv-out-0910.google.com with SMTP id k15so5129054rvb.23 for ; Fri, 04 Jan 2008 11:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uL/8fDiXi2SoYQ36MI8lR7YHr2N5DN2Tx6IOb7pUSn8=; b=qmsRI+PM3vZFudpF5S9z1Y9SOM/BJdVNn9heyQJGe1z2CGbmbATRNlX3VFilfd3y39U2SiPRmEnvsBTkxpl3o+BkeeDf//G+aiGt9OJxoShf1d0gzT+RjcUZ8/5Z19GGkWTFwY0jjHKqewijGQM36DEvyz/7NxMgUh5tT/qMK7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vb0GyARnEkZDp8vbVHjRj29q7AqN7H5phcPFEw2Yc1z6YC5YWDl5myTbDjaTxU+cyvYQTTA/5ZvmwgFfW0uglmkvIf6hWo6KkofpwJEWpkum0nGirktwuNxaK3oD1mqlA13RcA5E+PI9+SSaRI5lINscBGVwGi2APuC8N1mC9Lw= Received: by 10.140.139.3 with SMTP id m3mr8639975rvd.165.1199476272012; Fri, 04 Jan 2008 11:51:12 -0800 (PST) Received: by 10.141.177.21 with HTTP; Fri, 4 Jan 2008 11:51:11 -0800 (PST) Message-ID: Date: Fri, 4 Jan 2008 20:51:11 +0100 To: "Stanislav Malyshev" Cc: "Sam Barrow" , "internals Mailing List" In-Reply-To: <477E8707.8060800@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <477DB7BF.10201@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> <477E8707.8060800@zend.com> Subject: Re: [PHP-DEV] type hinting From: pierre.php@gmail.com (Pierre) On Jan 4, 2008 8:20 PM, Stanislav Malyshev wrote: > > 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? Are you recomanding to use E_NOTICE and higher level with display_errors on? =) -- Pierre http://blog.thepimp.net | http://www.libgd.org