Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62019 invoked from network); 1 Jul 2009 20:53:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2009 20:53:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi.nl Received: from [82.94.239.7] ([82.94.239.7:57106] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/F3-43450-3BCCB4A4 for ; Wed, 01 Jul 2009 16:53:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n61Kr4QE017281; Wed, 1 Jul 2009 22:53:04 +0200 X-Virus-Scanned: by amavisd-new at jdi-ict.nl Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n61Kr2cp017271; Wed, 1 Jul 2009 22:53:03 +0200 Date: Wed, 1 Jul 2009 21:53:02 +0100 (BST) X-X-Sender: derick@kossu.ez.no To: Ilia Alshanetsky cc: PHP internals In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (jdi.jdi-ict.nl [127.0.0.1]); Wed, 01 Jul 2009 22:53:03 +0200 (CEST) Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: derick@php.net (Derick Rethans) On Wed, 1 Jul 2009, Ilia Alshanetsky wrote: > > I've taken a few hours this morning to port my 5.2 type hinting patch to 5.3. > In recognition of a need for a more 'flexible' numeric type I've introduced > (numeric) type hint that would allow bool/int/float data types as well as a > string containing a numeric entity as identified by is_numeric_string(). For > completion i've also added (scalar) data type that will allow any scalar data > element. > > The patch is available here: http://ia.gd/patch/type_hint_53.txt +1 regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr