Issue Feature Closed

#35822Implement method to convert integer to version number

Michael Schams 04/10/12, 14:32 updated 10/02/18, 12:42

Description

The class t3lib_utility_VersionNumber in file t3lib/utility/class.t3lib_utility_versionnumber.php contains a method to convert version numbers to integer values (e.g. “4.12.3” to 4012003) but not the other way round.

I propose to implement an additional method to allow developers to convert integer values to version numbers, so the integer 4012003 would be converted to “4.12.3” as a string.

Please find my suggestion attached (updated file “class.t3lib_utility_versionnumber.php” and the patch).

Reviews 1