Re: Type hinting/casting request for vote

From: Date: Wed, 08 Jul 2009 18:00:08 +0000
Subject: Re: Type hinting/casting request for vote
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-44843@lists.php.net to get a copy of this message
Hi!
Only because there is a class hint (currently supported) function foo (StdClass $foo) {} and there was a request to support a generic object hint. So one became IS_CLASS and one is IS_OBJECT.
I'd say IS_OBJECT can fit both - we could treat empty class name as "any object". -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#44843) next »