function install_verify_pdo
install_verify_pdo()
Verifies the PDO library.
File
- includes/install.core.inc, line 868
- API functions for installing Drupal.
Code
function install_verify_pdo() { // PDO was moved to PHP core in 5.2.0, but the old extension (targeting 5.0 // and 5.1) is still available from PECL, and can still be built without // errors. To verify that the correct version is in use, we check the // PDO::ATTR_DEFAULT_FETCH_MODE constant, which is not available in the // PECL extension. return extension_loaded('pdo') && defined('PDO::ATTR_DEFAULT_FETCH_MODE'); }
© 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!install.core.inc/function/install_verify_pdo/7.x