Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52373 invoked from network); 1 Jul 2009 20:27:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2009 20:27:31 -0000 Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 209.85.220.224 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.220.224 mail-fx0-f224.google.com Received: from [209.85.220.224] ([209.85.220.224:58217] helo=mail-fx0-f224.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/C1-43450-1B6CB4A4 for ; Wed, 01 Jul 2009 16:27:30 -0400 Received: by fxm24 with SMTP id 24so1190955fxm.23 for ; Wed, 01 Jul 2009 13:27:25 -0700 (PDT) Received: by 10.204.58.16 with SMTP id e16mr1405783bkh.43.1246480045536; Wed, 01 Jul 2009 13:27:25 -0700 (PDT) Received: from ?10.195.1.30? ([24.114.234.32]) by mx.google.com with ESMTPS id 26sm2646410fks.31.2009.07.01.13.27.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 13:27:24 -0700 (PDT) References: <4A4BA5C8.1020204@zend.com> <4A4BAE7B.3020601@zend.com> Message-ID: <39D0B97E-3A70-44E3-B1BC-D68A0E58CA76@prohost.org> To: Stanislav Malyshev In-Reply-To: <4A4BAE7B.3020601@zend.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPhone Mail 7A341) Date: Wed, 1 Jul 2009 15:41:53 -0400 Cc: PHP internals X-Mailer: iPhone Mail (7A341) Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: ilia@prohost.org (Ilia Alshanetsky) C does not have booleans, they are emulated via smallint/tinyint. As far as your other message goes, this patch does nothing to affect how native functions handle args. Ilia Alshanetsky On 2009-07-01, at 2:44 PM, Stanislav Malyshev wrote: > Hi! > >> As far as your point goes, numeric hint addresses it. > > Numeric hint addresses one scenario only. It doesn't address > conversions to strings or booleans, for example (even C allows you > to use int as boolean! :). > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com