mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
Add error suppression to session_set_save_handler() call
Maintains consistent behavior with legacy code path by suppressing "headers already sent" warnings in test environments.
This commit is contained in:
@@ -120,8 +120,8 @@ class CHttpSession extends CApplicationComponent implements IteratorAggregate,Ar
|
|||||||
// CHttpSessionHandler is in a separate file to avoid parse errors on PHP 5.3
|
// CHttpSessionHandler is in a separate file to avoid parse errors on PHP 5.3
|
||||||
// where SessionHandlerInterface doesn't exist.
|
// where SessionHandlerInterface doesn't exist.
|
||||||
if (PHP_VERSION_ID >= 70000) {
|
if (PHP_VERSION_ID >= 70000) {
|
||||||
require_once(dirname(__FILE__) . '/CHttpSessionHandler.php');
|
require_once(dirname(__FILE__).'/CHttpSessionHandler.php');
|
||||||
session_set_save_handler(new CHttpSessionHandler($this), true);
|
@session_set_save_handler(new CHttpSessionHandler($this), true);
|
||||||
} else {
|
} else {
|
||||||
@session_set_save_handler(
|
@session_set_save_handler(
|
||||||
array($this, 'openSession'),
|
array($this, 'openSession'),
|
||||||
|
|||||||
Reference in New Issue
Block a user