From 1a3598c3f42c8c5d9349ebc69a7c9361cb0cd01e Mon Sep 17 00:00:00 2001 From: "Larry E. Masters" Date: Mon, 14 Dec 2015 19:29:08 -0600 Subject: [PATCH] Revert "session_status() not available until 5.4" This reverts commit da9b6453cee2f025aecb9ab30c9d3029fbf527db. --- lib/Cake/Model/Datasource/CakeSession.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Cake/Model/Datasource/CakeSession.php b/lib/Cake/Model/Datasource/CakeSession.php index 3ef115056..2afbcc0c3 100644 --- a/lib/Cake/Model/Datasource/CakeSession.php +++ b/lib/Cake/Model/Datasource/CakeSession.php @@ -218,10 +218,7 @@ class CakeSession { * @return bool True if session has been started. */ public static function started() { - if(PHP_VERSION >=5.4) { - return (session_status() === PHP_SESSION_ACTIVE); - } - return isset($_SESSION) && session_id(); + return (session_status() === PHP_SESSION_ACTIVE); } /**