Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c

From: Date: Sat, 19 Nov 2005 11:08:36 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
References: 1 2 3 4 5  Groups: php.zend-engine.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
On 19.11.2005 10:21, Stanislav Malyshev wrote:
SM>>Yes, I think too that compiler can catch this and output an error. Though On the second thought - if we don't write a default, is null allowed to places typehinted as array? If not, we should keep both things consistent. I.e., if we allow it as default, we should allow it in typehint too. This, however, may lead to some surprises. I know Java allows nulls to represent any type - should we do the same?
I think yes, NULL should be able to represent "nothing of any type". That makes it consistent and that's what I would expect. -- Wbr, Antony Dovgal

Thread (19 messages)

« previous php.zend-engine.cvs (#4373) next »