From: Daniel Beyer <ymc-dabe@vcs.ymc.ch>
Date: Sun, 21 Feb 2016 13:25:03 +0100
Subject: HttpFoundation Fix incompatibility with php-memcache from Debian

The version of php-memcache (3.0.9~20151130.fdbd46b-1) in Debian makes
the test MemcacheSessionHandlerTest::testReadSession fail, complaining
about missing arguments. This commit solves this issue.

Forwarded: https://github.com/symfony/symfony/pull/17873
---
 .../Session/Storage/Handler/MemcacheSessionHandler.php               | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php
index f6f99ed..77cad22 100644
--- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php
+++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php
@@ -79,7 +79,10 @@ class MemcacheSessionHandler implements \SessionHandlerInterface
      */
     public function read($sessionId)
     {
-        return $this->memcache->get($this->prefix.$sessionId) ?: '';
+        $flags = null;
+        $cas = null;
+
+        return $this->memcache->get($this->prefix.$sessionId, $flags, $cas) ?: '';
     }
 
     /**
