Commit 42a44808 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #195 in ZP/z-push from...

Merge pull request #195 in ZP/z-push from bugfix/ZP-876-arrays-in-constants-is-not-supported to develop

* commit '1dc3b193':
  ZP-876 Use static list instead a constant.
parents 14483645 1dc3b193
......@@ -47,11 +47,11 @@
include_once('backend/ipcsharedmemory/ipcsharedmemoryprovider.php');
abstract class InterProcessData {
// Defines which IPC provider to load, first has preference
// if IPC_PROVIDER in the main config is set, that class will be loaded
const PROVIDER_LOAD_ORDER = array('IpcMemcachedProvider', 'IpcSharedMemoryProvider');
const CLEANUPTIME = 1;
// Defines which IPC provider to load, first has preference
// if IPC_PROVIDER in the main config is set, that class will be loaded
static private $providerLoadOrder = array('IpcMemcachedProvider', 'IpcSharedMemoryProvider');
static protected $devid;
static protected $pid;
static protected $user;
......@@ -76,7 +76,7 @@ abstract class InterProcessData {
$this->provider_class = defined('IPC_PROVIDER') ? IPC_PROVIDER : false;
if (!$this->provider_class) {
foreach(self::PROVIDER_LOAD_ORDER as $provider) {
foreach(self::$providerLoadOrder as $provider) {
if (class_exists($provider)) {
$this->provider_class = $provider;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment