--TEST-- Memcached::getDelayedByKey() with callback exception --SKIPIF-- --FILE-- 'foo-data', 'bar' => 'bar-data', 'baz' => 'baz-data', 'lol' => 'lol-data', 'kek' => 'kek-data', ); function myfunc() { echo "called\n"; throw new Exception("1234"); } error_reporting(0); try { $m->getDelayedByKey('kef', array_keys($data), false, 'myfunc'); } catch (Exception $e) { echo error_get_last()["message"], "\n"; echo $e->getMessage(), "\n"; } --EXPECTF-- called Memcached::%s(): could not invoke%s 1234