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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php