Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.3
-
Fix Version/s: 1.7.1
-
Component/s: Zend_Session
-
Labels:None
Description
Exception for undefined variable _SESSION when Zend_Session::$_unitTestEnabled = true
The problem seems that the session is not started at all when unitTestEnabled, but a request to the session variable is made in Zend/Session.php, line 533. It is
if (empty($_SESSION['__ZF'])) {
unset($_SESSION['__ZF']);
}
should be:
if (isset($_SESSION['__ZF']) && empty($_SESSION['__ZF'])) { unset($_SESSION['__ZF']); } }
Testing against trunk, rev 12710
Fixed in r12722 against trunk, and r12723 against 1.7 release branch.