[BUGFIX] Cast autoload and classAliasMap to Array 41/23441/3
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:26:18 +0000 (14:26 +0200)
commit8cc7f45526bc8828dada995bc91804038d326eea
tree72021a6ae849e7ff1fe04af5efa1356362ed1eef
parentb0bbacfccde518988c458f7ed5ecc9a825280439
[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
typo3/sysext/core/Classes/Core/ClassLoader.php