Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
1dc3b193
Commit
1dc3b193
authored
May 09, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-876 Use static list instead a constant.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
14483645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
interprocessdata.php
src/lib/core/interprocessdata.php
+4
-4
No files found.
src/lib/core/interprocessdata.php
View file @
1dc3b193
...
@@ -47,11 +47,11 @@
...
@@ -47,11 +47,11 @@
include_once
(
'backend/ipcsharedmemory/ipcsharedmemoryprovider.php'
);
include_once
(
'backend/ipcsharedmemory/ipcsharedmemoryprovider.php'
);
abstract
class
InterProcessData
{
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
;
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
$devid
;
static
protected
$pid
;
static
protected
$pid
;
static
protected
$user
;
static
protected
$user
;
...
@@ -76,7 +76,7 @@ abstract class InterProcessData {
...
@@ -76,7 +76,7 @@ abstract class InterProcessData {
$this
->
provider_class
=
defined
(
'IPC_PROVIDER'
)
?
IPC_PROVIDER
:
false
;
$this
->
provider_class
=
defined
(
'IPC_PROVIDER'
)
?
IPC_PROVIDER
:
false
;
if
(
!
$this
->
provider_class
)
{
if
(
!
$this
->
provider_class
)
{
foreach
(
self
::
PROVIDER_LOAD_ORDER
as
$provider
)
{
foreach
(
self
::
$providerLoadOrder
as
$provider
)
{
if
(
class_exists
(
$provider
))
{
if
(
class_exists
(
$provider
))
{
$this
->
provider_class
=
$provider
;
$this
->
provider_class
=
$provider
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment