Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Require 5.5.9 instead of 5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 21, 2016
1 parent 06ce8d5 commit 8959c36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/core/src/pydio/Tests/PHPVersion.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PHPVersion extends AbstractTest
/** /**
* @inheritdoc * @inheritdoc
*/ */
public function __construct() { parent::__construct("PHP version", "Minimum required version is PHP 5.4.0"); } public function __construct() { parent::__construct("PHP version", "Minimum required version is PHP 5.5.9"); }


/** /**
* @inheritdoc * @inheritdoc
Expand All @@ -41,13 +41,11 @@ public function doTest()
{ {
$version = phpversion(); $version = phpversion();
$this->testedParams["PHP Version"] = $version; $this->testedParams["PHP Version"] = $version;
//return false; if (version_compare($version, '5.5.9') < 0 ) return FALSE;
if (floatval($version) < 5.4) return FALSE;
$locale = setlocale(LC_CTYPE, 0); $locale = setlocale(LC_CTYPE, 0);
$dirSep = DIRECTORY_SEPARATOR; $dirSep = DIRECTORY_SEPARATOR;
$this->testedParams["Locale"] = $locale; $this->testedParams["Locale"] = $locale;
$this->testedParams["Directory Separator"] = $dirSep; $this->testedParams["Directory Separator"] = $dirSep;
if (floatval($version) < 5.4 && $locale != "C" && $dirSep != '\\') { $this->failedLevel = "warning"; return FALSE; } // PHP4 doesn't work well with foreign encoding
return TRUE; return TRUE;
} }
} }

0 comments on commit 8959c36

Please sign in to comment.