[BUGFIX] Cast autoload and classAliasMap to Array 56/23456/2
authorMichel Georgy <michel@4eyes.ch>
Thu, 29 Aug 2013 07:34:21 +0000 (09:34 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Aug 2013 12:28:56 +0000 (14:28 +0200)
commit440ca58780191ca243cb5049c4af4493c4bc3a5d
tree463644a6826355752347635fcb4c1ac4dd6dc6cb
parent182e5cdd02acf6b27fc3fc17670dfdfa61d6bbf6
[BUGFIX] Cast autoload and classAliasMap to Array

If you create an empty ext_autoload.php or an empty classAliasMap.php
file or fail to return an array, NULL is merged with the existing
array which results in NULL for the array $classRegistry or
$aliasToClassNameMapping
This patch casts the required Array(which is possibly NULL) to an
Array to prevent array_merge with NULL values.

Fixes: #51474
Releases: 6.2, 6.1, 6.0
Change-Id: I1887da3a942b17e441338a95cb7da49a17535907
Reviewed-on: https://review.typo3.org/23441
Reviewed-by: Kai Ole Hartwig
Tested-by: Kai Ole Hartwig
Reviewed-by: Christoph Dörfel
Tested-by: Christoph Dörfel
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
(cherry picked from commit 8cc7f45526bc8828dada995bc91804038d326eea)
Reviewed-on: https://review.typo3.org/23456
typo3/sysext/core/Classes/Core/ClassLoader.php