Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Hotfix/session mutability#3452

Merged
Maks3w merged 4 commits into
zendframework:masterfrom
weierophinney:hotfix/session-mutability
Jan 16, 2013
Merged

Hotfix/session mutability#3452
Maks3w merged 4 commits into
zendframework:masterfrom
weierophinney:hotfix/session-mutability

Conversation

@weierophinney
Copy link
Copy Markdown
Member

Fixes issues introduced earlier this week when we added the ability to call the session's writeClose() method on shutdown. Doing it in __destruct caused issues, so @mwillbanks has moved it to a register_shutdown_function, which ensures the original issue is fixed, while simultaneously fixing the regression.

In this PR, I also made it possible to inject the PRG plugin with a session manager, to make mocking and test isolation easier.

Mike Willbanks and others added 4 commits January 16, 2013 10:14
…estructor

- Fixed an issue where an exception was not properly defined in use
- Fixed a flash messenger test by clearing session storage on teardown
- Removed a no longer valid test on sessionmanagertest

Conflicts:
	library/Zend/Session/Storage/SessionArrayStorage.php
- which allows creating the internally used Container with the specified
  session manager
- neither FM and PRG should instantiate a SessionManager directly; they
  should use the default manager from the Container class
- Created docblock for __invoke() method
- Removed an else condition that would not be hit if the if condition is
  evaluated.
- An import of "use Zend\Session\Storage\StorageInterface as Storage" caused a
  subsequent, existing check of "instanceof Storage\StorageInterface" to thus
  fail. Removed all imports for classes in the same namespace to fix the issue.
@weierophinney
Copy link
Copy Markdown
Member Author

To whomever reviews this: please merge against both master and develop, as the issue presents in both branches.

@Maks3w Maks3w merged commit 46100cd into zendframework:master Jan 16, 2013
@weierophinney weierophinney deleted the hotfix/session-mutability branch January 16, 2013 19:10
gianarb pushed a commit to zendframework/zend-session that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-session that referenced this pull request May 15, 2015
Conflicts:
	library/Zend/Mvc/Controller/Plugin/PostRedirectGet.php
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants