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

Zend Session fatal error in get array copy #6427

Closed
wants to merge 3 commits into from

Conversation

carnage
Copy link
Contributor

@carnage carnage commented Jun 30, 2014

If you call getArrayCopy on a zend session container after calling exchangeArray you get:

Fatal error: Call to a member function getArrayCopy() on a non-object in vendor/zendframework/zendframework/library/Zend/Session/AbstractContainer.php on line 614

This is one of several potential fixes.

Another would be to have the exchangeArray method ensure that an ArrayObject is always created and assigned to storage.

@carnage
Copy link
Contributor Author

carnage commented Jul 10, 2014

Build is failing but it's nothing to do with the code changed here: seems to be an issue with how dates are handled in PHP 5.6

@ezimuel ezimuel added this to the 2.3.2 milestone Aug 6, 2014
@Ocramius Ocramius self-assigned this Aug 6, 2014
Ocramius added a commit that referenced this pull request Aug 6, 2014
@Ocramius Ocramius closed this in e94885b Aug 6, 2014
@Ocramius
Copy link
Member

Ocramius commented Aug 6, 2014

Merged, thanks!

Ocramius added a commit that referenced this pull request Aug 6, 2014
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
gianarb pushed a commit to zendframework/zend-session that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants