Actions
Bug #84067
closedArrayUtility::arrayDiffAssocRecursive returns non-empty result if compared input arrays are identical
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