aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-07-02 16:10:55 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-02 16:10:55 +0200
commit108b9833a10ff657d5d55ba1f976ad7314ecbfa3 (patch)
treec36137f2b79ebd08ffd8fb6b47ddaa5d473a5774 /phpBB/phpbb/di
parentc80cf87b90eefab664ecf69f29796f9390a3ff17 (diff)
downloadforums-108b9833a10ff657d5d55ba1f976ad7314ecbfa3.tar
forums-108b9833a10ff657d5d55ba1f976ad7314ecbfa3.tar.gz
forums-108b9833a10ff657d5d55ba1f976ad7314ecbfa3.tar.bz2
forums-108b9833a10ff657d5d55ba1f976ad7314ecbfa3.tar.xz
forums-108b9833a10ff657d5d55ba1f976ad7314ecbfa3.zip
[ticket/13961] Define behaviour when the array is modified in a loop
PHPBB3-13961
Diffstat (limited to 'phpBB/phpbb/di')
-rw-r--r--phpBB/phpbb/di/service_collection_iterator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/di/service_collection_iterator.php b/phpBB/phpbb/di/service_collection_iterator.php
index 0d031ab52d..31bc156e99 100644
--- a/phpBB/phpbb/di/service_collection_iterator.php
+++ b/phpBB/phpbb/di/service_collection_iterator.php
@@ -32,7 +32,7 @@ class service_collection_iterator extends \ArrayIterator
*/
public function __construct(service_collection $collection, $flags = 0)
{
- parent::__construct($collection, $flags);
+ parent::__construct($collection->getArrayCopy(), $flags);
$this->collection = $collection;
}