While running Zend\Session\SaveHandler\MongoDB on php5.4, noticed the $data parameter in 'write' function was always empty.
After an investigation, found the following array cast always returned an empty array rather than calling $storage's toArray() function.
// Line 167, Zend\Session\SessionManager.php, in writeClose() function
$_SESSION = (array) $storage;
Not sure if this is the right solution, but this seems to fix it
$_SESSION = (array) $storage->toArray();
Good, send us a PR with the patch.
Also the array cast is not longer necessary
@Maks3w PR created
I can confirm this fixes the issue I raised in #3450
fix for zendframework/zendframework#3458