[BUGFIX] Fix loading of registry entries for namespace 08/32608/8
authorFrank Nägler <typo3@naegler.net>
Fri, 5 Sep 2014 19:01:24 +0000 (21:01 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 7 Sep 2014 18:59:14 +0000 (20:59 +0200)
commit718f777aeb32cef7b25af53ac2f8d81e803d1dda
treefe68dcc8ade9a6ffff6e7e81eccd7aad09ed1bc2
parentdea45311591ad180d695390d58eaad4266fa6f4f
[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/32608
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Registry.php
typo3/sysext/core/Tests/Unit/RegistryTest.php