From: Felipe Pena Date: Sun, 19 Jul 2009 20:53:26 +0000 (+0000) Subject: - Fixed module check (Related to bug #48785) X-Git-Tag: php-5.4.0alpha1~191^2~3049 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7a0e81a0fad5f57ab277dc8021bbfe03c327c26;p=php - Fixed module check (Related to bug #48785) --- diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index e6b959fd64..e1e51f25fd 100755 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -185,7 +185,7 @@ PDO_API int php_pdo_register_driver(pdo_driver_t *driver) driver->driver_name, driver->api_version, PDO_DRIVER_API); return FAILURE; } - if (!zend_hash_exists(&module_registry, "pdo", sizeof("pdo"))) { + if (!zend_hash_exists(&module_registry, "PDO", sizeof("PDO"))) { zend_error(E_ERROR, "You MUST load PDO before loading any PDO drivers"); return FAILURE; /* NOTREACHED */ } @@ -196,7 +196,7 @@ PDO_API int php_pdo_register_driver(pdo_driver_t *driver) PDO_API void php_pdo_unregister_driver(pdo_driver_t *driver) { - if (!zend_hash_exists(&module_registry, "pdo", sizeof("pdo"))) { + if (!zend_hash_exists(&module_registry, "PDO", sizeof("PDO"))) { return; }