From 940735ead52921744e1a8e531001333c8d7e26ea Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 8 Jan 2010 14:17:18 +0000 Subject: Mark static functions as static to avoid PHP 5.3 strict warnings (performance?) --- it_cache.class | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'it_cache.class') diff --git a/it_cache.class b/it_cache.class index d6d3029..bcd9bd3 100644 --- a/it_cache.class +++ b/it_cache.class @@ -24,7 +24,7 @@ class it_cache { -function _defaults($p) +static function _defaults($p) { $p += array( 'ttl' => 2, @@ -43,7 +43,7 @@ function _defaults($p) * @param $key Key to get value for * @return Value for given key or null */ -function get($key, $p = array()) +static function get($key, $p = array()) { $p = it_cache::_defaults($p); @@ -64,7 +64,7 @@ function get($key, $p = array()) * @param $p['ttl'] Time to live for this key/value-pair * @return Boolean if value was put into cache */ -function put($key, $value, $p = array()) +static function put($key, $value, $p = array()) { $p = it_cache::_defaults($p); @@ -83,7 +83,7 @@ function put($key, $value, $p = array()) return $result; } -function _get_memcache($p) +static function _get_memcache($p) { $memcache_id = "it_cache_memcache_" . $p['hostsfile']; -- cgit v1.2.3