From:             bart at mediawave dot nl
Operating system: WinXP
PHP version:      5.0.3
PHP Bug Type:     Arrays related
Bug description:  undefined function array_intersect_key()

Description:
------------
array_intersect_key() seems undefined.

Reproduce code:
---------------
<?php
$array1 = array('blue'  => 1, 'red'  => 2, 'green'  => 3, 'purple' => 4);
$array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan'  => 8);

var_dump(array_intersect_key($array1, $array2));
?> 

Expected result:
----------------
array(2) {
  ["blue"]=>
  int(1)
  ["green"]=>
  int(3)
})

Actual result:
--------------
Fatal error: Call to undefined function array_intersect_key() in
D:\Inetpub\wwwroot\phpbugs\array_intersect_key.php on line 13

-- 
Edit bug report at http://bugs.php.net/?id=31961&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31961&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31961&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31961&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31961&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31961&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31961&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31961&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31961&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31961&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31961&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31961&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31961&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31961&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31961&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31961&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31961&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31961&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31961&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31961&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31961&r=mysqlcfg

Reply via email to