From bb2ff3d50e2a44eae95ae4750b12d0f5d3241e29 Mon Sep 17 00:00:00 2001
From: Christopher Gervais <chris@ergonlogic.com>
Date: Wed, 26 Jun 2013 15:43:55 +0000
Subject: [PATCH] Issue #1841324 by ergonlogic, greg.1.anderson, anarcat: Reduce minimum PHP version to 5.3.3, and check for 'DRUSH_NO_MIN_PHP' environment variable to skip setting an error.

---
 includes/bootstrap.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 2250fd2..066a971 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1034,8 +1034,8 @@ function drush_bootstrap_prepare() {
   // PHP_VERSION, such as runserver/runserver.drush.inc, and also
   // adjust _drush_environment_check_php_ini() and the php_prohibited_options
   // list in the drush script.  See http://drupal.org/node/1748228
-  define('DRUSH_MINIMUM_PHP', '5.3.5');
-  if (version_compare(phpversion(), DRUSH_MINIMUM_PHP) < 0) {
+  define('DRUSH_MINIMUM_PHP', '5.3.3');
+  if (version_compare(phpversion(), DRUSH_MINIMUM_PHP) < 0 && !getenv('DRUSH_NO_MIN_PHP')) {
     return drush_set_error('DRUSH_REQUIREMENTS_ERROR', dt('Your command line PHP installation is too old. Drush requires at least PHP !version.', array('!version' => DRUSH_MINIMUM_PHP)));
   }
 
-- 
1.7.2.5

