Edit report at http://bugs.php.net/bug.php?id=15095&edit=1
ID: 15095 Updated by: [email protected] 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
