summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-22 04:45:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-22 04:45:35 +0000
commit3a29ee48f82eed3adfd2a90d0eae63a5903149fa (patch)
treec0de7a472a7db4dff57dd9b89c25d5e084c79ca8 /modules/simpletest/simpletest.install
parent4ddecc05c9d2054568300d25748569dcd34fec7d (diff)
downloadbrdo-3a29ee48f82eed3adfd2a90d0eae63a5903149fa.tar.gz
brdo-3a29ee48f82eed3adfd2a90d0eae63a5903149fa.tar.bz2
- Patch #3518404 by bopombatower: lock down DB config based on simpletest UA headers.
Diffstat (limited to 'modules/simpletest/simpletest.install')
-rw-r--r--modules/simpletest/simpletest.install9
1 files changed, 9 insertions, 0 deletions
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 <a href="@curl_url">cURL</a> 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 <a href="@hash_url">hash</a> extension is disabled.', array('@hash_url' => 'http://php.net/manual/en/book.hash.php'));
+ }
$requirements['php_domdocument'] = array(
'title' => $t('PHP DOMDocument class'),