[TYPO3-core] FYI: checking use of md5_file() in EM for PHP 4.1

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Jan 29 09:53:21 CET 2007


Dmitry Dulepov schrieb:
> Hi!
> 
> Martin Kutschker wrote:
> 
>> The EM of 4.0 uses md5_file() which is not available in PHP 4.1. I 
>> have created a wrapper to reenabled support for PHP 4.1.
>>
>> Masi
>>
>> PS: I have not been able to made real checks against PHP 4.1, but only 
>> checked md5_file().
> 
> 
> 
> Looks good however usually in typo3 it looks like:
> 
> if (!functions_exists('md5_file')) {
>     function md5_file($filename) {
>         return md5(t3lib_div::getURL($filename));
>     }
> }

Usually? I am only aware of one instance and that is the PHP5 compatibility 
layer. All other version or function existence checking were done like my 
coe. In fact I have copied the code from t3lib_stdgraphics.

Masi


More information about the TYPO3-team-core mailing list