Now support PHP 4.3+

desm0n - June 6, 2006 - 19:12
Project:Taxonomy Easy Filter
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:zealy
Status:closed
Description

After enabling the module and going to the setup section, altering some settings and try to submit i get

Fatal error: Call to undefined function: array_intersect_key() in /home/weplycom/public_html/porttalbotchat-co-uk/modules/taxonomy_ezfilter/taxonomy_ezfilter.module on line 92

Now i can no longer access the setup page for this module.

Tried both CVS abd 4.7 versions with the same result.

#1

zealy - June 7, 2006 - 02:17
Title:Fatal error: Call to undefined function: array_intersect_key()» You will need the PEAR package PHP_Compat.
Priority:critical» minor
Assigned to:Anonymous» zealy
Status:active» won't fix

Array_intersect_key() is a php5 function(PHP 5 >= 5.1.0RC1), but you can use it in older php by PEAR package PHP_Compat.

See also:
Function array_intersect_key document at php.net, there are some workarounds for older php in user's comments.
PHP_Compat Package at pear.php.net

Thank you.

#2

desm0n - June 7, 2006 - 07:28

Ah thats a real shame as i'm on a shared host and its likely they will not add that.

I'll have to try that other taxonomy filter but i had high hopes for yours.

Maybe you should update documentation to reflect that this is needed as many of php 4 are likely not to have it.

Thanks for your prompt response.

#3

zealy - June 9, 2006 - 01:56
Title:You will need the PEAR package PHP_Compat.» Now support PHP 4.3+
Priority:minor» normal
Status:won't fix» fixed

I have intergrated a workaround for array_intersect_key() for php <5.1. So this module can support php 4.3+, because array_intersect_assoc() need php 4> 4.3.0 or php 5.

#4

desm0n - June 9, 2006 - 06:10

thats great. Is it now including in the CVS ?

I'm really eager to try the module .

#5

zealy - June 9, 2006 - 09:21

yes, download and cvs are all updated.

#6

Anonymous - June 23, 2006 - 09:30
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.