php 5.5 related adjustments

This commit is contained in:
Latif Khalifa
2014-04-28 18:41:50 +02:00
parent 95602b2597
commit 0fb8c80b0b
8 changed files with 22 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ class Memc
static $active = false;
static $expire = 7200;
function init()
static function init()
{
if (!class_exists("Memcached", false)) return;
@@ -24,7 +24,7 @@ class Memc
self::$active = true;
}
function getq($q)
static function getq($q)
{
if (!self::$active) return false;
@@ -32,7 +32,7 @@ class Memc
return self::$mem->get($key);
}
function setq($q, $data)
static function setq($q, $data)
{
if (!self::$active) return false;
@@ -40,7 +40,7 @@ class Memc
return self::$mem->set($key, $data, self::$expire);
}
function flush()
static function flush()
{
if (!self::$active) return false;
self::$mem->flush();