Bug #15095: use of references in arguments with defaults
| From: | gusito at cwadv dot com | Date: | Fri, 18 Jan 2002 08:48:35 +0000 |
| Subject: | Bug #15095: use of references in arguments with defaults | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77409@lists.php.net to get a copy of this message | ||
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