[TYPO3-core] phpversion() vs PHP_VERSION

Karsten Dambekalns karsten at typo3.org
Fri Jun 2 19:37:01 CEST 2006


Hi.

On Friday 02 June 2006 15:43, Martin Kutschker wrote:
> Which one to use? We use both methods in the Core. Is one of them preferred
> or has a (dis)advantage over the other?

Accessing a cosntant should be faster than calling a function, so I'd vote for 
PHP_VERSION.

Ic checked with the manual, and both are available in all PHP versions, it 
seems.

Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060602/c921f6bb/attachment.pgp 


More information about the TYPO3-team-core mailing list