Re: RFC: allow_call_pass_by_reference

From: Date: Thu, 22 May 2008 11:22:07 +0000
Subject: Re: RFC: allow_call_pass_by_reference
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-37798@lists.php.net to get a copy of this message
Hi, Actually PHP ignores default values on parameters followed by required ones. You can't fetch the default value even via Reflection. This is easily detected at compile time so I wonder why the compiler doesn't warn. Regards, Stan Vassilev
what stops you from declaring: function someFunc(&$param = null) { } it works just fine
And what if this param isn't the last param of this function, and next params are required?
Then I would say "that is a bad design" -- Alexey Zakhlestin http://blog.milkfarmsoft.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#37798) next »