Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37119 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97010 invoked from network); 17 Apr 2008 19:51:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 19:51:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.146.180 wa-out-1112.google.com Received: from [209.85.146.180] ([209.85.146.180:65257] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/48-05127-B4AA7084 for ; Thu, 17 Apr 2008 15:51:40 -0400 Received: by wa-out-1112.google.com with SMTP id l24so287625waf.17 for ; Thu, 17 Apr 2008 12:51:37 -0700 (PDT) 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=wODXsEPrut2EYpv26ODjE/WmSMq60ZbVmb2U9Qe7oI4=; b=H/0kDmBrEOtbepdpVnUbddeYLpzzkXmOSOiBoXnS7sRPSUjaj42aZR42Pb3x9zp7c00jKSWqx9HV3VZ/PsMCQU2nB6+etK4rQp6knAVz3IYd5kVO3cZHb0ICwZ3AlZwmnF2jBryoDRG7WQqsp7gtASipt6P4MkAddaq1WcyoCqY= 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=fUtzDg8YM9R/Xkirj74k+d4vnEUQnf1meXNdRs0cNVyQU6C6aRRobuMOeKlb5CEqZ5aRvLTFZubYR8qmXELmXc3Siru3xe5we7OQAul1Q0N1/s85Fo3HfRyn4sziD+1Rquls4caVGQDtbS3ZxHkpZ2BBAsr9Is/H2+Fq+Xx4ixA= Received: by 10.114.58.6 with SMTP id g6mr2051456waa.86.1208461896787; Thu, 17 Apr 2008 12:51:36 -0700 (PDT) Received: by 10.114.255.17 with HTTP; Thu, 17 Apr 2008 12:51:36 -0700 (PDT) Message-ID: Date: Thu, 17 Apr 2008 21:51:36 +0200 To: "Stanislav Malyshev" Cc: "Sam Barrow" , "Elizabeth M Smith" , internals@lists.php.net In-Reply-To: <48079F30.4090203@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46ccd1ab0804170742g142ed562t4f03339da549a820@mail.gmail.com> <1208445852.5366.31.camel@felipe> <48079A46.9090403@zend.com> <1208458365.6148.21.camel@sbarrow-desktop> <48079F30.4090203@zend.com> Subject: Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value) From: paul.biggar@gmail.com ("Paul Biggar") On Thu, Apr 17, 2008 at 9:04 PM, Stanislav Malyshev wrote: > In fact, we have good old conversion system used in parse_parameters. So > why not use the same rules? That'd make at least some sense - give PHP > programmers the tools that extension C programmers have. I still wouldn't > like it too much but at least it would make sense :) As I read it, these convert the parameter to the expected type, if it is not already, and fail when this is not possible. All thats missing is scalar and numeric to be consistent with the is_*(), and its perfect. Paul -- Paul Biggar paul.biggar@gmail.com