As of some version of php7 (i was not able to determine which exactly).The $cas_token is no longer valid argument. It has been removed in favor of flags argument, as it appears to be causing issues when subclassing the Memcached class.See https://github.com/php-memcached-dev/php-memcached/pull/214 for more details.Basically you need to <?phpfunction memcacheGet($key, $cb = null, &$cas = null) { $m = memcacheGetObject(); if(empty($m)) return false; if(defined('Memcached::GET_EXTENDED')) { //Incompatible change in php7, took me 2 hours to figure this out, grrr $_o = $m->get($key, $cb, Memcached::GET_EXTENDED); $o = $_o['value']; $cas = $_o['cas']; } else { $o = $m->get($key, $cb, $cas); } return $o;}?>