From 753d6a99a59e1fbac9c4d7f19629d87296c3db9d Mon Sep 17 00:00:00 2001 From: rafalm Date: Wed, 29 Jul 2015 12:42:59 +0200 Subject: [PATCH] quick hack for session container. For some reason FlashMessenger plugin doesn't work on PHP 5.5 and 5.6 storage is never created, isset returns true but $storage[$name] is empty. Tested on Linux Ubuntu 12, 14 and Apache 2.4 --- src/AbstractContainer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractContainer.php b/src/AbstractContainer.php index 504cd4d1..7b636d55 100644 --- a/src/AbstractContainer.php +++ b/src/AbstractContainer.php @@ -192,7 +192,7 @@ protected function verifyNamespace($createContainer = true) { $storage = $this->getStorage(); $name = $this->getName(); - if (!isset($storage[$name])) { + if (!is_array($storage[$name]) && !$storage[$name] instanceof Traversable) { if (!$createContainer) { return; }