Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_1) /zend_compile.c
| From: | Marcus Boerger | Date: | Sat, 19 Nov 2005 09:47:37 +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 php-zend-engine-cvs+get-4372@lists.php.net to get a copy of this message | ||
Hello Stanislav,
according to the test (tests/classes/type_hinting_003.phpt) all works fine.
marcus
Saturday, November 19, 2005, 8:21:31 AM, you 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?
> --
> Stanislav Malyshev, Zend Products Engineer
> stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115
Best regards,
Marcus