Req #15095 [Opn->Wfx]: use of references in arguments with defaults
| From: | jani@php.net | Date: | Fri, 31 Dec 2010 23:11:58 +0000 |
| Subject: | Req #15095 [Opn->Wfx]: use of references in arguments with defaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157434@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=15095&edit=1
ID: 15095
Updated by: jani@php.net
Reported by: gusito at cwadv dot com
Summary: use of references in arguments with defaults
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: Scripting Engine problem
Operating System: linux
PHP Version: 4.1.1
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2002-01-18 03:48:34] gusito at cwadv dot com
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 this bug report at http://bugs.php.net/bug.php?id=15095&edit=1