aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2009-12-09 22:16:53 +0000
committerChris Smith <toonarmy@phpbb.com>2009-12-09 22:16:53 +0000
commit3665540ffb565f0a9fe19bc316a594b7011c3c69 (patch)
tree4d2f1fd39af593f64946493a07754fd8806a8a14 /phpBB/includes/acm
parent25545c06b25644a093f442b42bd97bab627aa3e5 (diff)
downloadforums-3665540ffb565f0a9fe19bc316a594b7011c3c69.tar
forums-3665540ffb565f0a9fe19bc316a594b7011c3c69.tar.gz
forums-3665540ffb565f0a9fe19bc316a594b7011c3c69.tar.bz2
forums-3665540ffb565f0a9fe19bc316a594b7011c3c69.tar.xz
forums-3665540ffb565f0a9fe19bc316a594b7011c3c69.zip
Check for required eAccelerator functions #54465
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10309 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r--phpBB/includes/acm/acm_eaccelerator.php1
-rw-r--r--phpBB/includes/acm/acm_memory.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_eaccelerator.php b/phpBB/includes/acm/acm_eaccelerator.php
index 1a3cf3c0f7..645067c199 100644
--- a/phpBB/includes/acm/acm_eaccelerator.php
+++ b/phpBB/includes/acm/acm_eaccelerator.php
@@ -30,6 +30,7 @@ if (!class_exists('acm_memory'))
class acm extends acm_memory
{
var $extension = 'eaccelerator';
+ var $function = 'eaccelerator_get';
var $serialize_header = '#phpbb-serialized#';
diff --git a/phpBB/includes/acm/acm_memory.php b/phpBB/includes/acm/acm_memory.php
index 1ed4fb0d55..e315e979e5 100644
--- a/phpBB/includes/acm/acm_memory.php
+++ b/phpBB/includes/acm/acm_memory.php
@@ -47,6 +47,11 @@ class acm_memory
trigger_error("Could not find required extension [{$this->extension}] for the ACM module $acm_type.", E_USER_ERROR);
}
+
+ if (isset($this->function) && !function_exists($this->function))
+ {
+ trigger_error("The required function [{$this->function}] is not available for the ACM module $acm_type.", E_USER_ERROR);
+ }
}
/**