Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Commit

Permalink
SP-127: fix for php 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rdex committed Sep 6, 2017
1 parent 713a80e commit 8a8ac14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/web/CHttpSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public function open()
if($this->getUseCustomStorage())
@session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession'));

@session_start();
if (session_status() !== PHP_SESSION_ACTIVE) {
@session_start();
}
if(YII_DEBUG && session_id()=='')
{
$message=Yii::t('yii','Failed to start session.');
Expand Down

0 comments on commit 8a8ac14

Please sign in to comment.