Skip to content
Browse files

MDL-41246 cache: Fix PHP notice of non well formed numeric values for…

… the memcache store
  • Loading branch information...
1 parent c9a3d37 commit 19ef0167784ef1e5ca4e2bd5f1b02dd12510b2c1 @gaudreaj gaudreaj committed Dec 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cache/stores/memcache/lib.php
View
2 cache/stores/memcache/lib.php
@@ -131,7 +131,7 @@ public function __construct($name, array $configuration = array()) {
$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);

0 comments on commit 19ef016

Please sign in to comment.
Something went wrong with that request. Please try again.