Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c php-src NEWS

From: Date: Sun, 16 Oct 2005 00:23:34 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c php-src NEWS
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-19624@lists.php.net to get a copy of this message
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.org

« previous php.internals (#19624) next »