From 3a29ee48f82eed3adfd2a90d0eae63a5903149fa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 22 Jul 2009 04:45:35 +0000 Subject: - Patch #3518404 by bopombatower: lock down DB config based on simpletest UA headers. --- modules/simpletest/simpletest.install | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/simpletest/simpletest.install') diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install index 6d77ff14e..42d625c93 100644 --- a/modules/simpletest/simpletest.install +++ b/modules/simpletest/simpletest.install @@ -130,6 +130,7 @@ function simpletest_requirements($phase) { $t = get_t(); $has_curl = function_exists('curl_init'); + $has_hash = function_exists('hash_hmac'); $has_domdocument = class_exists('DOMDocument'); $requirements['curl'] = array( @@ -140,6 +141,14 @@ function simpletest_requirements($phase) { $requirements['curl']['severity'] = REQUIREMENT_ERROR; $requirements['curl']['description'] = $t('Simpletest could not be installed because the PHP cURL library is not available.', array('@curl_url' => 'http://php.net/manual/en/curl.setup.php')); } + $requirements['hash'] = array( + 'title' => $t('hash'), + 'value' => $has_hash ? $t('Enabled') : $t('Not found'), + ); + if (!$has_hash) { + $requirements['hash']['severity'] = REQUIREMENT_ERROR; + $requirements['hash']['description'] = $t('Simpletest could not be installed because the PHP hash extension is disabled.', array('@hash_url' => 'http://php.net/manual/en/book.hash.php')); + } $requirements['php_domdocument'] = array( 'title' => $t('PHP DOMDocument class'), -- cgit v1.2.3