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

Key: ZF-3308
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Ralph Schindler
Reporter: Didier Maurer
Votes: 0
Watchers: 0
Operations

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

exception when Zend_Auth::getInstance()->setStorage(new My_Auth_Storage_CustomStorage()); is called more than one time

Created: 22/May/08 05:16 AM   Updated: 30/Apr/09 12:39 PM
Component/s: Zend_Session
Affects Version/s: 1.5.2
Fix Version/s: Next Minor Release

Time Tracking:
Not Specified

 Public Fields   Internal Project Management Fields   
Tags:
Participants: Didier Maurer, Ralph Schindler and Wil Sinclair
Fix Version Priority: Nice to Have


 Description  « Hide
I think there are some "side effects" I don't understand (currently) which are setting
self::$_destroyed of Zend_Session at something else than a boolean.

I posted on Nabble's forum :
http://www.nabble.com/Zend_Session-coupled-with-Zend_Auth-throws-an-exception-in-ZF-%3E1.0.3-td17364322.html#a17401565

So, I'm not a pretty good developer, but it could be nice to add some code du Zend_Session, in the start function, at the beginning:
if (! is_bool(self::$_destroyed) && !empty(self::$_destroyed) ) { require_once 'Zend/Session/Exception.php'; throw new Zend_Session_Exception('The session is set as destroyed with the value "'.self::$_destroyed.'" but has not been explicitly destroyed during this request.'); }
//the code below already exists, I've just added the '===true'
if (self::$_sessionStarted && self::$_destroyed===true) { require_once 'Zend/Session/Exception.php'; throw new Zend_Session_Exception('The session was explicitly destroyed during this request, attempting to re-start is not allowed.'); }



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Wil Sinclair - 01/Jun/08 01:28 PM
Please evaluate and categorize as necessary.

Ralph Schindler - 11/Jan/09 08:24 PM
Is this sill and issue? Also, if so, what is My_Auth_Storage_CustomStorage() doing?