summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-26 14:57:36 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-26 14:57:36 +0000
commit5c629b76c7e340d9d302478dded5648c582c98b5 (patch)
tree287b67b01fcd8cb0d2647e99fe03c33de2063faa /modules/system/system.install
parent38fca49ad64696b9bc044b2aba9b1bc625bd632a (diff)
downloadbrdo-5c629b76c7e340d9d302478dded5648c582c98b5.tar.gz
brdo-5c629b76c7e340d9d302478dded5648c582c98b5.tar.bz2
- Patch #445062 by Arancaytar: check for PHP tokenizer extension to be installed.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 19908ee0d..46d4deaa2 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -42,6 +42,17 @@ function system_requirements($phase) {
$requirements['php']['severity'] = REQUIREMENT_ERROR;
}
+ // Make sure the tokenizer extension is enabled, which is required by the code registry.
+ $requirements['php_tokenizer'] = array(
+ 'title' => $t('PHP tokenizer'),
+ 'value' => $t('Enabled'),
+ );
+ if (!function_exists('token_get_all')) {
+ $requirements['php_tokenizer']['value'] = $t('Not enabled');
+ $requirements['php_tokenizer']['description'] = $t('Drupal requires the <a href="@url">tokenizer extension</a> to be enabled.', array('@url' => 'http://php.net/tokenizer'));
+ $requirements['php_tokenizer']['severity'] = REQUIREMENT_ERROR;
+ }
+
// Test PHP register_globals setting.
$requirements['php_register_globals'] = array(
'title' => $t('PHP register globals'),