Yes and as I said in my argument, this solves some of the problems but
does not solve a non-rightmost parameter being optional.
-Jason
On Wed, 2002-05-29 at 11:43, Sebastian Bergmann wrote:
> Hamster ate my mail? Resent, just in case.
>
> Sebastian Bergmann wrote:
> > brad lafountain wrote:
> >> function foo(&$bar = null)
> >> {
> >> }
> >
> > This has already been "fixed" for the Zend Engine 2:
> >
> > * Parameters that are passed by reference to a function
> > may now have default values.
> >
> > Example:
> >
> > <?php
> > function my_function(&$var = null) {
> > if ($var === null) {
> > die('$var needs to have a value');
> > }
> > }
> > ?>
> >
> > (Source: /ZendEngine2/ZEND_CHANGES)
>
> --
> Sebastian Bergmann
> http://sebastian-bergmann.de/ http://phpOpenTracker.de/
>
> Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php