[TYPO3-dam] DAM 1.1 beta01 requires php >= 5.1 ?!
David Smeringe
david at smeringe.se
Wed Nov 22 11:04:24 CET 2006
Julien Furrer skrev:
> Hello,
>
> I've got the same problem, while running a PhP 4
>
> There's a workaround, until a better solution is found.
> Install the pear package PHP_Compat,
> and add the following line just before the line 1009 of
> /typo3conf/ext/dam/lib/class.tx_dam_scbase.php :
>
> if(!function_exists('array_diff_key')){require_once
> 'PHP/Compat/Function/array_diff_key.php';}
>
> It works on my configuration (php 4.3.10)
>
> I hope it will help.
That's a descent solution, but maybe it would be even better to add a
custom array_diff_key using one of the suggestions supplied on php.net
comments for array_diff_key such as
http://usphp.com/manual/en/function.array-diff-key.php#60675 ?
It would reduce both dependencies as well as fixing the problem. But
maybe that's bloating the codebase?
Regards,
David Smeringe
>
> Le 21 nov. 06 à 17:21, Karl-Ernst Kiel a écrit :
>
>> Hi!
>>
>> Seems that DAM 1.1 requires php version >= 5.1 ?!
>>
>> I ran into
>> Fatal error: Call to undefined function: array_diff_key() in
>> [...]/typo3conf/ext/dam/lib/class.tx_dam_scbase.php on line 1009
>>
>> and php.net says:
>>
>> array_diff_key
>> (PHP 5 >= 5.1.0RC1)
>>
>> ?!
>>
>> Greetings,
>> Karl-E.
>> _______________________________________________
>> TYPO3-project-dam mailing list
>> TYPO3-project-dam at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-dam
>
More information about the TYPO3-project-dam
mailing list