Re: [Fwd: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [RESENT] [PATCH] Allow constants / expressions to be passed by reference]]

From: Date: Wed, 29 May 2002 17:23:28 +0000
Subject: Re: [Fwd: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [RESENT] [PATCH] Allow constants / expressions to be passed by reference]]
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-84536@lists.php.net to get a copy of this message
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/ûã > öT †'ˆ'ÂA� > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.dev (#84536) next »