From:             php at electricsurfer dot com
Operating system: WIN XP
PHP version:      4.3.2
PHP Bug Type:     Feature/Change Request
Bug description:  Use default parameters in the middle while overriding def parameters 
at the end

Description:
------------
Given:
<?
function myfunc($arg1,$arg2=2,$arg3='',$arg4=false,$arg5=1)
{...}
?>
It would be nice to be able to do this:
<?
myfunc('arg1',5,,true);
?>
Which would keep the default values for arguments 3 & 5 but specify a
value for argument 4.

This way, if I ever change the default value of $arg3 from '' to null, I
have less code to modify.


-- 
Edit bug report at http://bugs.php.net/?id=24153&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24153&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24153&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24153&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24153&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24153&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24153&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24153&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24153&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24153&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24153&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24153&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24153&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24153&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24153&r=gnused

Reply via email to