Re: RFC: Type hinting revisited for PHP 5.3

From: Date: Wed, 01 Jul 2009 19:41:53 +0000
Subject: Re: RFC: Type hinting revisited for PHP 5.3
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-44601@lists.php.net to get a copy of this message
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 <stas@zend.com> 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


« previous php.internals (#44601) next »