php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33258 array_diff_key not present in PHP5
Submitted: 2005-06-07 01:22 UTC Modified: 2005-06-07 12:04 UTC
From: ml at iceni dot pl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.0.4 OS: WinXP + Apache
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: ml at iceni dot pl
New email:
PHP Version: OS:

 

 [2005-06-07 01:22 UTC] ml at iceni dot pl
Description:
------------
Hi,
I was wondering if this function (array_diff_key) is really implemented in PHP 5.0.4?
For more info, please look at comments here: http://php.net/array_diff_key



Reproduce code:
---------------
$finalArray = array_diff_key($array1, $array2);

Expected result:
----------------
no error

Actual result:
--------------
Fatal error: Call to undefined function: array_diff_key() in xxxx.php on line 239

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-07 12:04 UTC] vrana@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

It's PHP 5.1 only. There's a bug #33157 targeting this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC