Commit 1f5a347b authored by Skylar Kelty's avatar Skylar Kelty Committed by jun
Browse files

MDL-53947 memcached: Fix memcached session warning on PHP7

parent 4ee8ef5d
......@@ -136,7 +136,12 @@ class memcached extends handler {
ini_set('memcached.sess_locking', '1'); // Locking is required!
// Try to configure lock and expire timeouts - ignored if memcached is before version 2.2.0.
ini_set('memcached.sess_lock_max_wait', $this->acquiretimeout);
if (version_compare($version, '3.0.0-dev') >= 0) {
ini_set('memcached.sess_lock_wait_max', $this->acquiretimeout * 1000);
} else {
ini_set('memcached.sess_lock_max_wait', $this->acquiretimeout);
}
ini_set('memcached.sess_lock_expire', $this->lockexpire);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment