diff options
author | Joey3000 <Joey3000@users.noreply.github.com> | 2015-09-21 04:47:31 +0300 |
---|---|---|
committer | Joey3000 <Joey3000@users.noreply.github.com> | 2015-09-21 04:47:31 +0300 |
commit | fb70fa0f3641b440e0572c2c8f7c574aad06c9d8 (patch) | |
tree | 8fe3f63e95090da454e210d0a8a4d1e875352de6 /libs/Zend/Session.php | |
parent | 8c3f662e6be7f4c1fd4f9b62c517f0ca12462e7d (diff) |
Add error control operator prefix @ before ini_set()
Added where where missing
Diffstat (limited to 'libs/Zend/Session.php')
-rw-r--r-- | libs/Zend/Session.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/Zend/Session.php b/libs/Zend/Session.php index bbf8c1cc94..b5177c18fd 100644 --- a/libs/Zend/Session.php +++ b/libs/Zend/Session.php @@ -202,7 +202,7 @@ class Zend_Session extends Zend_Session_Abstract if (!self::$_defaultOptionsSet) { foreach (self::$_defaultOptions as $defaultOptionName => $defaultOptionValue) { if (isset(self::$_defaultOptions[$defaultOptionName])) { - ini_set("session.$defaultOptionName", $defaultOptionValue); + @ini_set("session.$defaultOptionName", $defaultOptionValue); } } @@ -216,7 +216,7 @@ class Zend_Session extends Zend_Session_Abstract // set the ini based values if (array_key_exists($userOptionName, self::$_defaultOptions)) { - ini_set("session.$userOptionName", $userOptionValue); + @ini_set("session.$userOptionName", $userOptionValue); } elseif (isset(self::$_localOptions[$userOptionName])) { self::${self::$_localOptions[$userOptionName]} = $userOptionValue; |