Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58585 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43721 invoked from network); 4 Mar 2012 16:47:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2012 16:47:10 -0000 Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:56033] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/17-12048-B8C935F4 for ; Sun, 04 Mar 2012 11:47:07 -0500 Received: by ghbg2 with SMTP id g2so1557344ghb.29 for ; Sun, 04 Mar 2012 08:47:04 -0800 (PST) Received-SPF: pass (google.com: domain of linepogl@gmail.com designates 10.236.76.198 as permitted sender) client-ip=10.236.76.198; Authentication-Results: mr.google.com; spf=pass (google.com: domain of linepogl@gmail.com designates 10.236.76.198 as permitted sender) smtp.mail=linepogl@gmail.com; dkim=pass header.i=linepogl@gmail.com Received: from mr.google.com ([10.236.76.198]) by 10.236.76.198 with SMTP id b46mr22702920yhe.25.1330879624120 (num_hops = 1); Sun, 04 Mar 2012 08:47:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5wnlV42lzLKnoXWnw55RSFWVM/PtmPMi+52QtM/lagU=; b=nq7rv6qDneN1T9ROszvqykl0CIKI9NRyyoorjVvoq6muJosbvAJSzCSauxn3oFKVyc KLrhPAWijtaSDrCb7sNI+2FJtx6mBXCZNkWEm7jIWmIKelC/lXPfDC2fRWl6Z7Ajm6dP Wpqzc9wENJKiy9xEozAJdKV7QEblf2HRg2NuyOqk2Y7ofeg34X7Z69BTxUWCwIC6h/k1 IU7uMuZ+ScmJBHdtdSb0J4SPWvch1wOPpitaqvrhxfztA8F9OXPJoQymk+ReKdUp9Nif D/Q8I5wRgxFVaJc1p2zChgkBybPQvkE89GhCFC27yBEJAKIOjf56y0saLqlymEiLqQrH Msjw== Received: by 10.236.76.198 with SMTP id b46mr18035574yhe.25.1330879624003; Sun, 04 Mar 2012 08:47:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.125.8 with HTTP; Sun, 4 Mar 2012 08:46:43 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Mar 2012 17:46:43 +0100 Message-ID: To: Anthony Ferrara Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf300fb3a73a3ea804ba6d8f47 Subject: Re: [PHP-DEV] [RFC - Discussion] Parameter Type Casting Hints From: linepogl@gmail.com (Lazare Inepologlou) --20cf300fb3a73a3ea804ba6d8f47 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Anthony, just a tiny detail in your RCF: So (int) $foo =3D null and (int) $foo =3D 1 are both supported, but (int) $= foo > =3D =E2=80=9C1=E2=80=9D will generate an E_COMPILE_ERROR. > If null is going to be cast, (int)null is 0. So I don't think it should be a valid default value. Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel 2012/3/4 Anthony Ferrara > Hey all, > > I've drafted an RFC for the Parameter type casting hint proposal that > I posted to before. Attached to the RFC is a patch that's proposed > for inclusion in core for functionality (it doesn't include news > entries, or documentation, or any of the other steps that would be > needed prior to commit). > > https://wiki.php.net/rfc/parameter_type_casting_hints > > Please provide feedback here on the implementation and RFC topics. > > Thanks, > > Anthony > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --20cf300fb3a73a3ea804ba6d8f47--