Browse Source

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

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
e67b9a8482
  1. 3
      framework/yii/web/Session.php

3
framework/yii/web/Session.php

@ -118,13 +118,10 @@ 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 (!$this->_opened) {
if ($this->getUseCustomStorage()) {

Loading…
Cancel
Save