Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44591 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18160 invoked from network); 1 Jul 2009 18:43:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2009 18:43:03 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.214 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.217.214 mail-gx0-f214.google.com Received: from [209.85.217.214] ([209.85.217.214:59603] helo=mail-gx0-f214.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/F5-24906-53EAB4A4 for ; Wed, 01 Jul 2009 14:43:02 -0400 Received: by gxk10 with SMTP id 10so2326gxk.23 for ; Wed, 01 Jul 2009 11:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HiocRD49A2hPSZGQOEDDhcVa5jVvsZtnTlZkSjirgpU=; b=l65SdE0lTNg/9ZPEqXdpfsXyKnUXMYlKzifJWOW/+M3YKA1WYHGL+IDkIdCM8CUDkc 0yLD6coIyaErgqGoR5sOIZW1OPtJQWNCY4owRkVdDtOTsYGTLptgs/auYyaM3rkQajoE F/SFrJXwux+lqO6ooyLgM7cHVF41iLM8h3nGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cFb+TcqTEL1PaJBwtLtZ3XWIBUaMJmx0OA/xlwn2u41rxLVEraSdX3Uw4DmCwnRe0F L7AVTv3GMu6XkfFKp3ZbfPsLtDgHswnpZC8UezqEP5jbSt0tZFW42874wySwnXuGZ10P ACzrQOIaHoRmj0kVd96ANEm+9VVTVh6iJ6W7g= MIME-Version: 1.0 Received: by 10.231.18.137 with SMTP id w9mr2765953iba.42.1246473776633; Wed, 01 Jul 2009 11:42:56 -0700 (PDT) In-Reply-To: <7f3ed2c30907011112s4c34ec32i6b06811676a82eb4@mail.gmail.com> References: <7f3ed2c30907011112s4c34ec32i6b06811676a82eb4@mail.gmail.com> Date: Wed, 1 Jul 2009 15:42:56 -0300 Message-ID: To: Hannes Magnusson Cc: Ilia Alshanetsky , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: guilhermeblanco@gmail.com (Guilherme Blanco) Although this sounds an extremely valid change, it breaks binary so I'm against on 5.3. Also, introducing type hints doesn't means that also core functions should follow it? Because currently '1' is converted to true. So in microtime for example... it should not support microtime('true'), but microtime(true) only. This is a change in zend_parse_parameters that automagically converts to correct type. That means more logic that if this is applied to userland, the same should be applied to internal functions. Just my 0.02. Cheers, On Wed, Jul 1, 2009 at 3:12 PM, Hannes Magnusson wrote: > On Wed, Jul 1, 2009 at 18:59, Ilia Alshanetsky wrote: >> The patch is available here: http://ia.gd/patch/type_hint_53.txt > > It is missing minor build fix for ext/reflection, see > http://pastebin.com/f50db9aa1 > > Other then that, I'm definitely +1 on this > > -Hannes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com URL: http://blog.bisna.com S=C3=A3o Paulo - SP/Brazil