Issues

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

Issue Type: Bug Created: 2008-11-20T02:04:53.000+0000 Last Updated: 2008-12-01T13:50:45.000+0000 Status: Resolved Fix version(s): - 1.7.1 (01/Dec/08)

Reporter: Emil Ivanov (vladev) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Session

Related issues: Attachments:

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts