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

Commit

Permalink
[phpversion test] Update php version to 5.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 5, 2015
1 parent 36cc0c3 commit 02671f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/core/tests/test.PHPVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
*/
class PHPVersion extends AbstractTest
{
public function __construct() { parent::__construct("PHP version", "Minimum required version is PHP 5.3.0"); }
public function __construct() { parent::__construct("PHP version", "Minimum required version is PHP 5.4.0"); }
public function doTest()
{
$version = phpversion();
$this->testedParams["PHP Version"] = $version;
//return false;
if (floatval($version) < 5.3) return FALSE;
if (floatval($version) < 5.4) return FALSE;
$locale = setlocale(LC_CTYPE, 0);
$dirSep = DIRECTORY_SEPARATOR;
$this->testedParams["Locale"] = $locale;
$this->testedParams["Directory Separator"] = $dirSep;
if (floatval($version) < 5.3 && $locale != "C" && $dirSep != '\\') { $this->failedLevel = "warning"; return FALSE; } // PHP4 doesn't work well with foreign encoding
if (floatval($version) < 5.4 && $locale != "C" && $dirSep != '\\') { $this->failedLevel = "warning"; return FALSE; } // PHP4 doesn't work well with foreign encoding
return TRUE;
}
}

0 comments on commit 02671f0

Please sign in to comment.