Project

General

Profile

Actions

Bug #84067

closed

ArrayUtility::arrayDiffAssocRecursive returns non-empty result if compared input arrays are identical

Added by Markus Klein over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2018-02-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Feeding identical arrays into ArrayUtility::arrayDiffAssocRecursive() results in a non-empty difference.
If the input arrays are identical it returns the whole nesting structure of array, but no real values.

$a = [ 'foo' => [ 0 => 'a'  ] ];
$diff = ArrayUtility::arrayDiffAssocRecursive($a, $a);
$diff === [ 'foo' => [] ];
Actions

Also available in: Atom PDF