Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseTasks::hasPdoDriver

Ensure the PDO driver is supported by the version of PHP in use.

1 call to DatabaseTasks::hasPdoDriver()
DatabaseTasks::installable in includes/install.inc
Check whether Drupal is installable on the database.

File

includes/install.inc, line 353

Class

DatabaseTasks
Database installer structure.

Code

protected function hasPdoDriver() {
 return in_array ($this->pdoDriver, PDO::getAvailableDrivers());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.