Bump php minimum version requirement.

This commit is contained in:
Benoît Burnichon
2015-03-23 18:49:57 +01:00
parent ef68007132
commit bae6f66f41
3 changed files with 9 additions and 7 deletions

View File

@@ -22,7 +22,6 @@ before_script:
- npm --version
- travis_retry npm install
- phpenv config-rm xdebug.ini
- sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- echo 'session.cache_limiter = ""' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'extension="redis.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/redis.ini
- echo 'extension="memcache.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/memcache.ini

View File

@@ -19,6 +19,10 @@ class OpcodeCacheRequirement extends RequirementCollection implements Requiremen
{
$this->setName('Opcode Cache');
if (version_compare(phpversion(), '5.5.0', '>=')) {
return;
}
$this->addRecommendation(
extension_loaded('apc') || class_exists('xcache') || class_exists('wincache'),
'A cache opcode extension such as apc, xcache or wincache is recommended',

View File

@@ -15,7 +15,7 @@ use Alchemy\Phrasea\Setup\RequirementCollection;
class SystemRequirements extends RequirementCollection implements RequirementInterface
{
const REQUIRED_PHP_VERSION = '5.4.0';
const REQUIRED_PHP_VERSION = '5.5.0';
public function __construct()
{
@@ -281,11 +281,10 @@ class SystemRequirements extends RequirementCollection implements RequirementInt
);
$accelerator =
(function_exists('apc_store') && ini_get('apc.enabled'))
||
function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
||
function_exists('xcache_set')
version_compare(phpversion(), '5.5.0', '>=')
|| (function_exists('apc_store') && ini_get('apc.enabled'))
|| function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
|| function_exists('xcache_set')
;
$this->addRecommendation(