Commit a62c19e5 authored by Helmut Hummel's avatar Helmut Hummel Committed by Markus Klein
Browse files

[BUGFIX] Ensure PHP 5.2 compatibility in makeInstance

The backport #53682 introduced a regression with PHP 5.2, 
which still is officially supported by TYPO3 CMS 4.5

Adapt the code to be PHP 5.2 compatible

Resolves: #62391
Releases: 4.5
Change-Id: Ie9d6c3175d02424e0d2329cc07ff99e09cccc040

Reviewed-by: default avatarChristian Hernmarck <>
Reviewed-by: default avatarMarkus Klein <>
Tested-by: default avatarMarkus Klein <>
parent 4534943a
......@@ -5429,7 +5429,8 @@ final class t3lib_div {
// Create new instance and call constructor with parameters
$instance = self::instantiateClass($finalClassName, func_get_args());
$arguments = func_get_args();
$instance = self::instantiateClass($finalClassName, $arguments);
// Register new singleton instance
if ($instance instanceof t3lib_Singleton) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment