PHP 4.0 Bug #2385 Updated: using $variables as default value in a function doen't work
| From: | Bug Database | Date: | Mon, 27 Sep 1999 05:09:42 +0000 |
| Subject: | PHP 4.0 Bug #2385 Updated: using $variables as default value in a function doen't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11316@lists.php.net to get a copy of this message | ||
ID: 2385
Updated by: cslawi
Reported By: webmaster@retroplay.com
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
This isn't a bug; it just doesn't work that way. For one thing, should the
default be the value as evaluated when the function is parsed, or it's
called?
For more information, see the manual:
http://www.php.net/manual/functions.arguments.php3
For ways around this, see:
http://www.progressive-comp.com/Lists/?l=php3-general&m=91877248424055&w=2
Torben
Full Bug description available at: http://bugs.php.net/version4/?id=2385