public function testSavePath()
 {
     MemcacheSessionHandler::configure();
     $this->assertEquals("Memcache", ini_get("session.save_path"));
 }
Example #2
0
 public static function init($storeClassName, $config, $keyPrefix = '')
 {
     $phpVersion = phpVersion();
     if (version_compare($phpVersion, '5.4') != -1) {
         return MemcacheSessionHandler::init($storeClassName, $config, $keyPrefix);
     } else {
         return MemcacheSessionHandlerCompatible::init($storeClassName, $config, $keyPrefix);
     }
 }