[TYPO3-dam] DAM 1.1 beta01 requires php >= 5.1 ?!

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Nov 22 11:47:47 CET 2006


David Smeringe schrieb:
> 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?

If this function is the only thing that prevents DAM to run on 4.3 or 5.0 
then it would be great if DAM would ship with it's own implementation of 
array_diff_key.

Masi



More information about the TYPO3-project-dam mailing list