#39843 [Opn->Bgs]: function array_fill_keys does not exist
| From: | bjori@php.net | Date: | Fri, 15 Dec 2006 16:52:14 +0000 |
| Subject: | #39843 [Opn->Bgs]: function array_fill_keys does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106404@lists.php.net to get a copy of this message | ||
ID: 39843
Updated by: bjori@php.net
Reported By: fatum at list dot ru
-Status: Open
+Status: Bogus
Bug Type: Arrays related
Operating System: Microsoft Windows 2000
PHP Version: 5.2.0
New Comment:
>Actually PHP Version is 5.1.4. Function array_fill_keys
does not exist in this version
No one said it did. The function is available as of PHP
5.2.0
Previous Comments:
------------------------------------------------------------------------
[2006-12-15 16:02:09] fatum at list dot ru
Description:
------------
Actually PHP Version is 5.1.4. Function array_fill_keys does not exist
in this version
Reproduce code:
---------------
Example
<?php
$array = array ( 1, 2, 3, 4);
print_r( array_fill_keys($array, 0));
?>
Result
Fatal error: Call to undefined function: array_fill_keys() in
--cut--.php on line 3
Expected result:
----------------
NOT the fatal error
Actual result:
--------------
Fatal error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39843&edit=1