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