From cfcaac3b7bf553a33a6bced765f3b8bdcb2f41fb Mon Sep 17 00:00:00 2001 From: George Wilson Date: Thu, 4 Aug 2016 02:55:18 +0100 Subject: [PATCH] Fix logging in in PHP 5.3 --- libraries/joomla/session/handler/native.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/joomla/session/handler/native.php b/libraries/joomla/session/handler/native.php index 9b439b6d9c3eb..bc13c8ab327f9 100644 --- a/libraries/joomla/session/handler/native.php +++ b/libraries/joomla/session/handler/native.php @@ -22,7 +22,7 @@ class JSessionHandlerNative implements JSessionHandlerInterface * @var boolean * @since 3.5 */ - private $started; + private $started = false; /** * Has the session been closed @@ -30,7 +30,7 @@ class JSessionHandlerNative implements JSessionHandlerInterface * @var boolean * @since 3.5 */ - private $closed; + private $closed = false; /** * Starts the session @@ -151,6 +151,7 @@ public function regenerate($destroy = false, $lifetime = null) // Workaround for https://bugs.php.net/bug.php?id=61470 as suggested by David Grudl session_write_close(); + $this->closed = true; if (isset($_SESSION)) {