Commit e67b9a84 by Alexander Makarov

Removed check for PHP 5.4 from Session::open()

parent 1af4ffd2
...@@ -118,13 +118,10 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co ...@@ -118,13 +118,10 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
*/ */
public function open() public function open()
{ {
// this is available in PHP 5.4.0+
if (function_exists('session_status')) {
if (session_status() == PHP_SESSION_ACTIVE) { if (session_status() == PHP_SESSION_ACTIVE) {
$this->_opened = true; $this->_opened = true;
return; return;
} }
}
if (!$this->_opened) { if (!$this->_opened) {
if ($this->getUseCustomStorage()) { if ($this->getUseCustomStorage()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment