aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php4
-rw-r--r--engine/lib/entities.php2
-rw-r--r--engine/lib/metastrings.php2
-rw-r--r--engine/lib/notification.php1
-rw-r--r--engine/lib/pam.php1
-rw-r--r--engine/lib/users.php2
-rw-r--r--engine/lib/web_services.php1
-rw-r--r--engine/lib/xml-rpc.php1
8 files changed, 14 insertions, 0 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index d02427029..973e63e53 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -19,6 +19,7 @@
*
* @global array $DB_QUERY_CACHE
*/
+global $DB_QUERY_CACHE;
$DB_QUERY_CACHE = array();
/**
@@ -38,6 +39,7 @@ $DB_QUERY_CACHE = array();
*
* @global array $DB_DELAYED_QUERIES
*/
+global $DB_DELAYED_QUERIES;
$DB_DELAYED_QUERIES = array();
/**
@@ -48,6 +50,7 @@ $DB_DELAYED_QUERIES = array();
*
* @global array $dblink
*/
+global $dblink;
$dblink = array();
/**
@@ -57,6 +60,7 @@ $dblink = array();
*
* @global integer $dbcalls
*/
+global $dbcalls;
$dbcalls = 0;
/**
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 0efc9c364..aebaf1724 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -13,6 +13,7 @@
* @global array $ENTITY_CACHE
* @access private
*/
+global $ENTITY_CACHE;
$ENTITY_CACHE = array();
/**
@@ -21,6 +22,7 @@ $ENTITY_CACHE = array();
* @global array $SUBTYPE_CACHE
* @access private
*/
+global $SUBTYPE_CACHE;
$SUBTYPE_CACHE = NULL;
/**
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php
index 8a105b822..229adb0ed 100644
--- a/engine/lib/metastrings.php
+++ b/engine/lib/metastrings.php
@@ -8,9 +8,11 @@
*/
/** Cache metastrings for a page */
+global $METASTRINGS_CACHE;
$METASTRINGS_CACHE = array();
/** Keep a record of strings we know don't exist */
+global $METASTRINGS_DEADNAME_CACHE;
$METASTRINGS_DEADNAME_CACHE = array();
/**
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index 5b53a4a10..44539d8b5 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -19,6 +19,7 @@
*/
/** Notification handlers */
+global $NOTIFICATION_HANDLERS;
$NOTIFICATION_HANDLERS = array();
/**
diff --git a/engine/lib/pam.php b/engine/lib/pam.php
index f6db28355..37e709a8a 100644
--- a/engine/lib/pam.php
+++ b/engine/lib/pam.php
@@ -20,6 +20,7 @@
* @subpackage Authentication.PAM
*/
+global $_PAM_HANDLERS;
$_PAM_HANDLERS = array();
/**
diff --git a/engine/lib/users.php b/engine/lib/users.php
index dcdad3193..8d00eee2f 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -8,9 +8,11 @@
*/
/// Map a username to a cached GUID
+global $USERNAME_TO_GUID_MAP_CACHE;
$USERNAME_TO_GUID_MAP_CACHE = array();
/// Map a user code to a cached GUID
+global $CODE_TO_GUID_MAP_CACHE;
$CODE_TO_GUID_MAP_CACHE = array();
/**
diff --git a/engine/lib/web_services.php b/engine/lib/web_services.php
index f928dc29a..e70359fa8 100644
--- a/engine/lib/web_services.php
+++ b/engine/lib/web_services.php
@@ -29,6 +29,7 @@
* )
* )
*/
+global $API_METHODS;
$API_METHODS = array();
/**
diff --git a/engine/lib/xml-rpc.php b/engine/lib/xml-rpc.php
index 6c1084f70..b63d626df 100644
--- a/engine/lib/xml-rpc.php
+++ b/engine/lib/xml-rpc.php
@@ -86,6 +86,7 @@ function xmlrpc_scalar_value($object) {
// Functions for adding handlers //////////////////////////////////////////////////////////
/** XML-RPC Handlers */
+global $XML_RPC_HANDLERS;
$XML_RPC_HANDLERS = array();
/**