Zend Framework

Exception for undefined variable _SESSION when Zend_Session::$_unitTestEnabled = true

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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

Activity

Hide
Matthew Weier O'Phinney added a comment -

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

Show
Matthew Weier O'Phinney added a comment - Fixed in r12722 against trunk, and r12723 against 1.7 release branch.
Hide
Wil Sinclair added a comment -

Updating these issues to mark them resolved for 1.7.1.

Show
Wil Sinclair added a comment - Updating these issues to mark them resolved for 1.7.1.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: