History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-5003
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matthew Weier O'Phinney
Reporter: Emil Ivanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

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

Created: 20/Nov/08 02:04 AM   Updated: 01/Dec/08 01:50 PM
Component/s: Zend_Session
Affects Version/s: 1.7.3
Fix Version/s: 1.7.1

Time Tracking:
Not Specified

Tags:
Participants: Emil Ivanov, Matthew Weier O'Phinney and Wil Sinclair


 Description  « Hide
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



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Matthew Weier O'Phinney - 20/Nov/08 12:12 PM
Fixed in r12722 against trunk, and r12723 against 1.7 release branch.

Wil Sinclair - 01/Dec/08 01:50 PM
Updating these issues to mark them resolved for 1.7.1.