function DatabaseTasks_pgsql::checkPHPVersion

DatabaseTasks_pgsql::checkPHPVersion()

Check PHP version.

There are two bugs in PDO_pgsql affecting Drupal:

File

includes/database/pgsql/install.inc, line 76
Install functions for PostgreSQL embedded database engine.

Class

DatabaseTasks_pgsql

Code

function checkPHPVersion() {
  if (!version_compare(PHP_VERSION, '5.2.11', '>=') || (version_compare(PHP_VERSION, '5.3.0', '>=') && !version_compare(PHP_VERSION, '5.3.1', '>='))) {
    $this->fail(st('The version of PHP you are using has known issues with PostgreSQL. You need to upgrade PHP to 5.2.11, 5.3.1 or greater.'));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!pgsql!install.inc/function/DatabaseTasks_pgsql::checkPHPVersion/7.x