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

Fixed in r12722 against trunk, and r12723 against 1.7 release branch.

Updating these issues to mark them resolved for 1.7.1.