From b97f5f180ebac5efb5dcc2ce7e83ed78612d4af7 Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 23 Jan 2012 12:38:34 +0000 Subject: [PATCH] // Add a check on required PHP version in installer --- install-new/init.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-new/init.php b/install-new/init.php index 7224dc237..05fde922b 100644 --- a/install-new/init.php +++ b/install-new/init.php @@ -25,6 +25,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +// Check PHP version +if (version_compare(PHP_VERSION, '5.1', '<')) + die('You need at least PHP 5.1 to run PrestaShop. Your current PHP version is '.PHP_VERSION); + // Generate common constants define('PS_INSTALLATION_IN_PROGRESS', true); define('_PS_INSTALL_PATH_', dirname(__FILE__).'/');