From d5794aca00a8bbdd1f698db690ad304e40717320 Mon Sep 17 00:00:00 2001 From: Dries <dries@buytaert.net> Date: Fri, 2 Mar 2012 14:51:19 -0500 Subject: [PATCH] - Patch #1463564 by effulgentsia: Drupal 8 cannot be installed or used on PHP <5.3.3. --- core/INSTALL.sqlite.txt | 2 +- core/INSTALL.txt | 2 +- core/includes/bootstrap.inc | 2 +- core/install.php | 4 ++-- core/update.php | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/INSTALL.sqlite.txt b/core/INSTALL.sqlite.txt index b4bfcef472f8..4e64756a1e23 100644 --- a/core/INSTALL.sqlite.txt +++ b/core/INSTALL.sqlite.txt @@ -3,7 +3,7 @@ SQLITE REQUIREMENTS ------------------- To use SQLite with your Drupal installation, the following requirements must be -met: Server has PHP 5.3.2 or later with PDO, and the PDO SQLite driver must be +met: Server has PHP 5.3.3 or later with PDO, and the PDO SQLite driver must be enabled. SQLITE DATABASE CREATION diff --git a/core/INSTALL.txt b/core/INSTALL.txt index 245e934cb727..5c0c7b24860b 100644 --- a/core/INSTALL.txt +++ b/core/INSTALL.txt @@ -15,7 +15,7 @@ REQUIREMENTS AND NOTES Drupal requires: - A web server. Apache (version 2.0 or greater) is recommended. -- PHP 5.3.2 (or greater) (http://www.php.net/). +- PHP 5.3.3 (or greater) (http://www.php.net/). - One of the following databases: - MySQL 5.0.15 (or greater) (http://www.mysql.com/). - MariaDB 5.1.44 (or greater) (http://mariadb.org/). MariaDB is a fully diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index a70023557682..26dfb204b46f 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -22,7 +22,7 @@ /** * Minimum supported version of PHP. */ -const DRUPAL_MINIMUM_PHP = '5.3.2'; +const DRUPAL_MINIMUM_PHP = '5.3.3'; /** * Minimum recommended value of PHP memory_limit. diff --git a/core/install.php b/core/install.php index 7e908bd55289..3ea85ff8500a 100644 --- a/core/install.php +++ b/core/install.php @@ -26,8 +26,8 @@ // The minimum version is specified explicitly, as DRUPAL_MINIMUM_PHP is not // yet available. It is defined in bootstrap.inc, but it is not possible to // load that file yet as it would cause a fatal error on older versions of PHP. -if (version_compare(PHP_VERSION, '5.3.2') < 0) { - print 'Your PHP installation is too old. Drupal requires at least PHP 5.3.2. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.'; +if (version_compare(PHP_VERSION, '5.3.3') < 0) { + print 'Your PHP installation is too old. Drupal requires at least PHP 5.3.3. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.'; exit; } diff --git a/core/update.php b/core/update.php index 4d74c7e07007..4ddab838666c 100644 --- a/core/update.php +++ b/core/update.php @@ -26,8 +26,8 @@ // The minimum version is specified explicitly, as DRUPAL_MINIMUM_PHP is not // yet available. It is defined in bootstrap.inc, but it is not possible to // load that file yet as it would cause a fatal error on older versions of PHP. -if (version_compare(PHP_VERSION, '5.3.2') < 0) { - print 'Your PHP installation is too old. Drupal requires at least PHP 5.3.2. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.'; +if (version_compare(PHP_VERSION, '5.3.3') < 0) { + print 'Your PHP installation is too old. Drupal requires at least PHP 5.3.3. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.'; exit; } -- GitLab