From 60143bf62706a1513b0945119026128a43f047d8 Mon Sep 17 00:00:00 2001 From: Andjelko Horvat <comel@vingd.com> Date: Tue, 26 Jun 2012 14:41:33 +0000 Subject: [PATCH] SimpleSAML_Store_Memcache::set(): expire fix (issue #501). git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3125 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Store/Memcache.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SimpleSAML/Store/Memcache.php b/lib/SimpleSAML/Store/Memcache.php index ccccda0a1..15660acfb 100644 --- a/lib/SimpleSAML/Store/Memcache.php +++ b/lib/SimpleSAML/Store/Memcache.php @@ -43,6 +43,10 @@ class SimpleSAML_Store_Memcache extends SimpleSAML_Store { assert('is_string($key)'); assert('is_null($expire) || (is_int($expire) && $expire > 2592000)'); + if ($expire === NULL) { + $expire = 0; + } + SimpleSAML_Memcache::set('simpleSAMLphp.' . $type . '.' . $key, $value, $expire); } -- GitLab