Mantis - Quercus
Viewing Issue Advanced Details
2057 minor always 10-10-07 17:24 10-10-07 21:48
koreth  
nam  
normal  
closed 3.1.3  
fixed  
none    
none 3.1.4  
0002057: array_fill_keys() not implemented
Our code calls array_fill_keys() in a few places; it's undefined in Quercus. Not urgent as I can work around it with a PHP-based implementation, but a native one would be more efficient.

http://us3.php.net/manual/en/function.array-fill-keys.php [^]

PHP implementation:

function array_fill_keys($keys, $value) {
  $a = array();
  foreach ($keys as $key) {
    $a[$key] = $value;
  }
  return $a;
}

Notes
(0002337)
nam   
10-10-07 21:48   
php/1770