#23104 [NEW]: Default array parameter value
| From: | mkong at intisoft dot com | Date: | Tue, 08 Apr 2003 03:26:09 +0000 |
| Subject: | #23104 [NEW]: Default array parameter value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37321@lists.php.net to get a copy of this message | ||
From: mkong at intisoft dot com
Operating system: i86 Linux 2.4.7-10
PHP version: 4.3.1
PHP Bug Type: Arrays related
Bug description: Default array parameter value
If an array is used as a default parameter value, e.g:
function foo ($arrParam = array ("a", "b", "c")
{
.
.
.
}
If the function is called without the corresponding parameter, i.e. the
default parameter value is used, the parameter ($arrParam) will need to be
reset first.
--
Edit bug report at http://bugs.php.net/?id=23104&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23104&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23104&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23104&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23104&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23104&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23104&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23104&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23104&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23104&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23104&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23104&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23104&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23104&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23104&r=gnused