[TYPO3-core] phpversion() vs PHP_VERSION

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Jun 2 15:54:15 CEST 2006


Michael Stucki schrieb:
> Hi Martin,
> 
> 
>>Which one to use? We use both methods in the Core. Is one of them preferred
>>or has a (dis)advantage over the other?
> 
> 
> You probably mean $TYPO_version against TYPO3_version, right?

No. There are also two way for detecing the PHP version.

> I recommend to use the constant because a) it can't be changed, and b) because 
> the name of the variable is wrong.
> 
> Probably you should mark the old variable as deprecated.

Yes. But how? By adding a comment to config_defaults.php?

Masi



More information about the TYPO3-team-core mailing list