[TYPO3-dev] TYPO3 4.2 Alpha 1

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Sep 11 11:29:23 CEST 2007


Martin Kutschker schrieb:
> Thomas Hempel schrieb:
>> Hi Masi,
>>
>>>>> 5.0/5.1, too. The only thing is that the new installer has a check 
>>>>> for 5.2 and currently will refuse the installation. We might take a 
>>>>> look at this again...
>>>> I just decreased the version from PHP 5.2 to 5.1. So you'll be able 
>>>> to install on systems with PHP 5.1 installed!
>>>
>>> Can the installer use a variable/constant from config_default?. There 
>>> are also checks in init.php and index_ts.php for the PHP version. 
>>> Keeping them in sync is error prone.
>> Shouldn't be a big problem. The only small issue is, that the error 
>> message contains the required PHP version "hard coded" ;-)
> 
> I know. Either the version is parsed for the check or the message or we 
> need two version variables/constants.

Defining TYPO3_PHP_VERSION as string conataing "x.y.z" we could do it like 
this:

if (t3lib_div::int_from_ver(phpversion()) <
     t3lib_div::int_from_ver(TYPO3_PHP_VERSION)) {
  die ('TYPO3 requires PHP '.TYPO3_PHP_VERSION.' or higher.');
}

Masi




More information about the TYPO3-dev mailing list