ID: 19252 Updated by: [EMAIL PROTECTED] Reported By: jc at mega-bucks dot co dot jp Status: Open Bug Type: Documentation problem Operating System: all PHP Version: 4.3.0 New Comment:
It seems this is documented at: http://www.php.net/manual/en/functions.arguments.php#functions.arguments.default Maybe a bit hidden Previous Comments: ------------------------------------------------------------------------ [2003-01-31 13:04:32] [EMAIL PROTECTED] Yeah, we may as well mention this here: file: phpdoc/{lang}/language/functions.xml section: <sect2 id="functions.arguments.default"> ------------------------------------------------------------------------ [2002-09-26 19:56:13] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2002-09-05 15:22:54] [EMAIL PROTECTED] No it wouldn't be nice to do #2, thats just not fun programming practice/maintaince. Can you give a URL to the section of the documentation you're asking to be updated? ------------------------------------------------------------------------ [2002-09-05 11:09:23] jc at mega-bucks dot co dot jp Could you add to the docs in the section on functions and default argument values that default values can only be scalers or constants? these won't work: 1- function a ($b = $val) {} 2- function b ($a = another_function()) {} This link offers some workarounds, eventhough it would be really nice to be able to do #2, don't you think ;) http://marc.theaimsgroup.com/?l=php-general&m=91877248424055& ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19252&edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
