Skip to content

Commit

Permalink
Merge pull request #11 from AndreasMalecki/master
Browse files Browse the repository at this point in the history
Allow unit testing session functionality with PHP 7.2
  • Loading branch information
Shardj authored Aug 9, 2019
2 parents cdb7521 + 58a9fb0 commit 3f24279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ protected function __construct()
public static function setOptions(array $userOptions = array())
{
// set default options on first run only (before applying user settings)
if (!self::$_defaultOptionsSet) {
if (!self::$_defaultOptionsSet && !self::$_unitTestEnabled) {
foreach (self::$_defaultOptions as $defaultOptionName => $defaultOptionValue) {
if (isset(self::$_defaultOptions[$defaultOptionName])) {
ini_set("session.$defaultOptionName", $defaultOptionValue);
Expand Down

0 comments on commit 3f24279

Please sign in to comment.