Project

General

Profile

Actions

Bug #23576

closed

implodeTSParams(): numeric keys will be renumbered

Added by Dirk Wildt about 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-09-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions #1

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)?

Actions #2

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.

Actions

Also available in: Atom PDF