From:             [EMAIL PROTECTED]
Operating system: Any
PHP version:      4.1.2
PHP Bug Type:     Unknown/Other Function
Bug description:  call_user_func_array does not bind array keys to params

When calling a function with call_user_func_array, if one of the parameters
is not set, the trailing hash values are assigned to the wrong
parameters.

function test( $a, $b, $c ) {
  echo "|$a:$b:$c|";
}

$aParams = array( "a" => 1, "c" => 3 );

call_user_func_array( "test", $aParams );

The output I get is
|1:3:|
-- 
Edit bug report at http://bugs.php.net/?id=17207&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17207&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17207&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17207&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17207&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17207&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17207&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17207&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17207&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17207&r=globals

Reply via email to