diff options
author | robocoder <anthon.pang@gmail.com> | 2011-06-19 15:42:54 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-06-19 15:42:54 +0400 |
commit | 47a0d01f7a691fcd95140a955c9ea8420c609942 (patch) | |
tree | 33efa4b69bc26abf39868738049dc3509e8ebba0 /libs/Zend | |
parent | 1d6a4e2e930c6cae3194bc57d0b8f0a812b3fe08 (diff) |
fixes #2491
* couldn't reproduce it, but description matches ZF-7611, ZF-7171 - exception thrown
* also, http://forum.piwik.org/read.php?5,78021 - ini_set disabled
* quickly sanity tested on 5.1.3, 5.2.0, and 5.3.6
Note to self: there's a ZF1 memcache savehandler in ZF-10561
git-svn-id: http://dev.piwik.org/svn/trunk@4941 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/Zend')
-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 59c3980362..848f9ab1eb 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; |