Bug #23576
closedimplodeTSParams(): numeric keys will be renumbered
0%
Description
implodeTSParams() uses the PHP method array_merge.
But array_merge change numeric keys. They will be renumbered. See link below for further information.
implodeTSParams() works proper with the array operator +.
The line
$implodeParams = array_merge($implodeParams, self::implodeTSParams($val, $k . $kb));
has to replaced by
$implodeParams = $implodeParams + self::implodeTSParams($val, $k . $kb);
Kind regards
Dirk
File: typo3_src-4.4.2/t3lib/class.t3lib_befunc.php
Method: t3lib_BEfunc::implodeTSParams
Further information:
http://de3.php.net/manual/en/function.array-merge.php:
Example #3 Simple array_merge() example: Don't forget that numeric keys will be renumbered!
(issue imported from #M15757)
Updated by Alexander Opitz about 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.