Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c php-src NEWS
| From: | Andi Gutmans | Date: | Sun, 16 Oct 2005 00:28:25 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c php-src NEWS | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19626@lists.php.net to get a copy of this message | ||
Ouch, I missed that. Sorry.
At 05:23 PM 10/15/2005, Derick Rethans wrote:
Hello Andi, On Sat, 15 Oct 2005, Andi Gutmans wrote: After the millions of discussions on this topic it would have been better to share this patch with everyone before commiting. I did, last week: http://news.php.net/php.internals/19482 In any case, as I could never think of a better syntax to deal with the somewhat harmless ambiguity of default value and "allowing" null, I don't mind having this patch. It should be documented though that this syntax comes to serve both purposes. I do suggest though, that you perfect the patch to make sure that using values other than null is a compile-time error and not only caught at run-time. I'm talking about the following function decleration: function testNull(MyClass $obj = 1) { } Yes, that would make sense. I'll have a look at that. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.orgZend/PHP Conference & Expo Power Your Business with PHP October 18-21, 2005 - San Francisco http://zend.kbconferences.com/