From 9ef10ee80699d7ee78f6439703ade77dad243462 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 30 Oct 2013 15:03:07 +0100 Subject: [PATCH] [-] IN : Handle RC PHP_VERSION --- install-dev/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dev/init.php b/install-dev/init.php index d55d22b87..0b7d570dd 100644 --- a/install-dev/init.php +++ b/install-dev/init.php @@ -27,7 +27,7 @@ ob_start(); // Check PHP version -if (version_compare(PHP_VERSION, '5.1.3', '<')) +if (version_compare(preg_replace('/[A-Za-z\-]/', '', PHP_VERSION), '5.1.3', '<')) die('You need at least PHP 5.1.3 to run PrestaShop. Your current PHP version is '.PHP_VERSION); // Generate common constants