ZF-5003: Exception for undefined variable _SESSION when Zend_Session::$_unitTestEnabled = true
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
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-11-20T12:12:45.000+0000
Fixed in r12722 against trunk, and r12723 against 1.7 release branch.
Posted by Wil Sinclair (wil) on 2008-12-01T13:50:45.000+0000
Updating these issues to mark them resolved for 1.7.1.