pass through exact versions
authorMichael Wallner <mike@php.net>
Fri, 31 Jul 2015 07:18:26 +0000 (09:18 +0200)
committerMichael Wallner <mike@php.net>
Fri, 31 Jul 2015 07:18:26 +0000 (09:18 +0200)
php-version.php

index 761f09ab8360708f44d2456cb61478497c063634..8d6e087c2ebea4559f889052f6c0ccd050a0ffc3 100644 (file)
@@ -7,4 +7,6 @@ list($major) = explode(".", $version, 2);
 
 if (isset($versions[$major][$version])) {
        printf("%s\n", $versions[$major][$version]["version"]);
+} else {
+       printf("%s\n", $version);
 }