Project

General

Profile

Actions

Bug #43874

closed

array_merge_recursive_overrule: __UNSET can't unset array values

Added by Sebastian Michaelsen over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2012-12-11
Due date:
% Done:

100%

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

Description

If the $enableUnsetFeature parameter is true, array_merge_recursive_overrule you can unset values from the first array.
The phpDoc says:

* @param boolean $enableUnsetFeature If set, special values "__UNSET" can be used in the second array in order to unset array keys in the resulting array.

But in fact keys are only unset if they don't hold an array value. I see no reason why this should be like this. There should be the possibility to unset array values.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #33941: Add possibility to unset parts in t3lib_div::array_merge_recursive_overrule()ClosedOliver Hader2012-02-15

Actions
Actions

Also available in: Atom PDF