]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Utils.php
application: move checkPHPVersion from Utils to ApplicationUtils
[github/shaarli/Shaarli.git] / application / Utils.php
index 120333c560c93c29cf33a6e6175f829ae26ca6a4..b8579b4864f174503e9c5dae4c1351999a487a2a 100644 (file)
@@ -119,26 +119,6 @@ function generateLocation($referer, $host, $loopTerms = array())
     return $finalReferer;
 }
 
-/**
- * Checks the PHP version to ensure Shaarli can run
- *
- * @param string $minVersion minimum PHP required version
- * @param string $curVersion current PHP version (use PHP_VERSION)
- *
- * @throws Exception    the PHP version is not supported
- */
-function checkPHPVersion($minVersion, $curVersion)
-{
-    if (version_compare($curVersion, $minVersion) < 0) {
-        throw new Exception(
-            'Your PHP version is obsolete!'
-            .' Shaarli requires at least PHP '.$minVersion.', and thus cannot run.'
-            .' Your PHP version has known security vulnerabilities and should be'
-            .' updated as soon as possible.'
-        );
-    }
-}
-
 /**
  * Validate session ID to prevent Full Path Disclosure.
  *