[BUGFIX] Fix loading of registry entries for namespace 19/32619/2
authorFrank Nägler <typo3@naegler.net>
Fri, 5 Sep 2014 19:01:24 +0000 (21:01 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 7 Sep 2014 19:15:30 +0000 (21:15 +0200)
commitbef3955d11ccc1d375cf868e23a9b9cba31ee781
treee6dfc93dbc1dbffe59096853db377ccc87fa0a19
parentcb3dc5e43d3b51a86bbe5247894b4dde01eeafce
[BUGFIX] Fix loading of registry entries for namespace

When calling get(), all entries for the given namespace are loaded only
if no value for this namespace has been set() before in the same run.

This patch fix this by tracking the loading of namespaces and check the
state before set() or get() is processed. In case the namespace was not
loaded before, the loadEntriesByNamespace() is called to prevent
overwrite of values.

Resolves: #53182
Releases: 6.3, 6.2
Change-Id: Ib09e5892e35cef998413d2f0d8039ed49a7e7226
Reviewed-on: http://review.typo3.org/32619
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Registry.php
typo3/sysext/core/Tests/Unit/RegistryTest.php