Re: Bug #15095: use of references in arguments with defaults
| From: | l0t3k | Date: | Fri, 18 Jan 2002 16:55:33 +0000 |
| Subject: | Re: Bug #15095: use of references in arguments with defaults | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77451@lists.php.net to get a copy of this message | ||
i think it was recently added to the Zend cvs for ZE2. in other words, its
likely to be in PHP5
<gusito@cwadv.com> wrote in message news:bug-15095@bugs.php.net...
> From: gusito@cwadv.com
> Operating system: linux
> PHP version: 4.1.1
> PHP Bug Type: Feature/Change Request
> Bug description: use of references in arguments with defaults
>
> I would like to be able to define a function with a
> referenced argument as well as give it a default value.
>
> function foo(&$bar = NULL) {}
>
> So, what will it reference, you ask? Nothing. I just want
> the argument to be optional, but to reference if there is
> an argument supplied. So, it's less of a default that's
> needed for references, more the ability to have the
> argument be optional.
>
> This would make me so happy.
>
> --
> Edit bug report at: http://bugs.php.net/?id=15095&edit=1
>