From 353643d33f9c72f5e9224dc4b199c5db60c038e7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Gaudreau Date: Wed, 11 Dec 2013 10:47:22 -0500 Subject: [PATCH] MDL-41246 cache: Fix PHP notice of non well formed numeric values for the memcache store --- cache/stores/memcache/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/stores/memcache/lib.php b/cache/stores/memcache/lib.php index c71f1080160..1ee6e5e824e 100644 --- a/cache/stores/memcache/lib.php +++ b/cache/stores/memcache/lib.php @@ -131,7 +131,7 @@ class cachestore_memcache extends cache_store implements cache_is_configurable { $this->connection = new Memcache; foreach ($this->servers as $server) { - $this->connection->addServer($server[0], $server[1], true, $server[2]); + $this->connection->addServer($server[0], (int) $server[1], true, (int) $server[2]); } // Test the connection to the pool of servers. $this->isready = @$this->connection->set($this->parse_key('ping'), 'ping', MEMCACHE_COMPRESSED, 1);