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

From: Date: Sun, 16 Oct 2005 21:40:55 +0000
Subject: Re: 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-19654@lists.php.net to get a copy of this message
On Sun, 16 Oct 2005, Derick Rethans wrote: > > 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. And it doesn't work in unicode=on mode yet... this is another piece of code that will need to get two branches :I Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#19654) next »