comparison program/lib/Roundcube/rcube_session.php @ 19:b6a96bdd6b29

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Wed, 08 Oct 2025 08:50:44 -0400
parents dd5ed6ef69c9
children
comparison
equal deleted inserted replaced
18:b631c1c7a3ce 19:b6a96bdd6b29
300 // no session data in cache (read() returns false) 300 // no session data in cache (read() returns false)
301 if (!$this->key) { 301 if (!$this->key) {
302 $cache = null; 302 $cache = null;
303 } 303 }
304 // use internal data for fast requests (up to 0.5 sec.) 304 // use internal data for fast requests (up to 0.5 sec.)
305 else if ($key == $this->key && (!$this->vars || $ts - $this->start < 0.5)) { 305 else if ($key == $this->key && (!$this->vars || microtime(true) - $this->start < 0.5)) {
306 $cache = $this->vars; 306 $cache = $this->vars;
307 } 307 }
308 else { // else read data again 308 else { // else read data again
309 $cache = $this->read($key); 309 $cache = $this->read($key);
310 } 310 }