php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39843 function array_fill_keys does not exist
Submitted: 2006-12-15 16:02 UTC Modified: 2006-12-15 16:52 UTC
From: fatum at list dot ru Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 5.2.0 OS: Microsoft Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fatum at list dot ru
New email:
PHP Version: OS:

 

 [2006-12-15 16:02 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-15 16:52 UTC] bjori@php.net
>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
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Mar 24 03:00:01 2026 UTC