Skip to content

Commit

Permalink
Fix #310. Reduce the minimum PHP to 5.3.0 from 5.3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Dec 6, 2013
1 parent 12063b6 commit 92e2733
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Each version of Drush supports multiple Drupal versions. Drush 6 is recommended

Drush Version | Branch | PHP | Compatible Drupal versions | Code Status
------------- | ------ | --- | -------------------------- | -----------
Drush 7 | [master](https://travis-ci.org/drush-ops/drush) | 5.3.3+ | D6, D7, D8 | <img src="https://travis-ci.org/drush-ops/drush.png?branch=master">
Drush 6 | [6.x](https://travis-ci.org/drush-ops/drush) | 5.3.3+ | D6, D7 | <img src="https://travis-ci.org/drush-ops/drush.png?branch=6.x">
Drush 7 | [master](https://travis-ci.org/drush-ops/drush) | 5.3.0+ | D6, D7, D8 | <img src="https://travis-ci.org/drush-ops/drush.png?branch=master">
Drush 6 | [6.x](https://travis-ci.org/drush-ops/drush) | 5.3.0+ | D6, D7 | <img src="https://travis-ci.org/drush-ops/drush.png?branch=6.x">
Drush 5 | [5.x](https://travis-ci.org/drush-ops/drush) | 5.2.0+ | D6, D7 | <img src="https://travis-ci.org/drush-ops/drush.png?branch=5.x">
Drush 4 | 4.x | 5.2.0+ | D5, D6, D7 | Unsupported
Drush 3 | 3.x | 5.2.0+ | D5, D6 | Unsupported
Expand Down Expand Up @@ -62,7 +62,6 @@ MISC
REQUIREMENTS
-----------

* To use Drush, you'll need a command line PHP version 5.3.3+.
* Drush commands that work with git require git 1.7 or greater.
* Drush works best on a Unix-like OS (Linux, OS X)
* Most Drush commands run on Windows. See INSTALLING DRUSH ON WINDOWS, below.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"drush.complete.sh"
],
"require": {
"php": ">=5.3.3"
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": ">=3.5"
Expand Down
2 changes: 1 addition & 1 deletion drush.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @file
* drush is a PHP script implementing a command line shell for Drupal.
*
* @requires PHP CLI 5.3.5, or newer.
* @requires PHP CLI 5.3.0, or newer.
*/

require(dirname(__FILE__) . '/includes/bootstrap.inc');
Expand Down
2 changes: 1 addition & 1 deletion examples/example.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function dssh() {
}

# Drush checks the current PHP version to ensure compatibility, and fails with
# an error if less than the supported minimum (currently 5.3.3). If you would
# an error if less than the supported minimum (currently 5.3.0). If you would
# like to try to run Drush on a lower version of PHP, you can un-comment the
# line below to skip this check. Note, however, that this is un-supported.

Expand Down
4 changes: 2 additions & 2 deletions includes/bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,9 @@ 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.3');
define('DRUSH_MINIMUM_PHP', '5.3.0');
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)));
return drush_set_error('DRUSH_REQUIREMENTS_ERROR', dt('Your command line PHP installation is too old. Drush requires at least PHP !version. To suppress this check, set the environment variable DRUSH_NO_MIN_PHP=1', array('!version' => DRUSH_MINIMUM_PHP)));
}

$drush_info = drush_read_drush_info();
Expand Down

0 comments on commit 92e2733

Please sign in to comment.