// Add a check on required PHP version in installer
This commit is contained in:
@@ -25,6 +25,10 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* 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
|
// Generate common constants
|
||||||
define('PS_INSTALLATION_IN_PROGRESS', true);
|
define('PS_INSTALLATION_IN_PROGRESS', true);
|
||||||
define('_PS_INSTALL_PATH_', dirname(__FILE__).'/');
|
define('_PS_INSTALL_PATH_', dirname(__FILE__).'/');
|
||||||
|
|||||||
Reference in New Issue
Block a user