On Wed, Feb 23, 2011 at 4:29 AM, Stas Malyshev <smalys...@sugarcrm.com> wrote:
> Hi!
>
>> public function Killjoy(MyEnum $x)
>
> What would be the purpose of such code? What would it do if 5 is passed as
> $x?

IMHO, it should fail (unless 5 is the value explicitly mentioned in
MyEnum definition)

-- 
Alexey Zakhlestin, http://twitter.com/jimi_dini
http://www.milkfarmsoft.com/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to