From e67b9a8482fa3f0269cd76df4cce4a265c5b9955 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 24 Oct 2013 17:05:08 +0400 Subject: [PATCH] Removed check for PHP 5.4 from Session::open() --- framework/yii/web/Session.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/framework/yii/web/Session.php b/framework/yii/web/Session.php index d081cc9..b03c74b 100644 --- a/framework/yii/web/Session.php +++ b/framework/yii/web/Session.php @@ -118,12 +118,9 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co */ public function open() { - // this is available in PHP 5.4.0+ - if (function_exists('session_status')) { - if (session_status() == PHP_SESSION_ACTIVE) { - $this->_opened = true; - return; - } + if (session_status() == PHP_SESSION_ACTIVE) { + $this->_opened = true; + return; } if (!$this->_opened) {