Issue Bug Closed

#107360Regression: DataHandler processCmdMap hook subscribers accepting arguments by reference broken by inline type cast of function arguments

Claus Due 08/30/25, 10:04 updated 12/02/25, 13:58

Description

Introduced in https://github.com/TYPO3/typo3/commit/c6f30d00c48a0cd2fdd92a9fcfe478ce6aabb5ed which adds unnecessary and unrelated type casts of function arguments, which broke every extension and project that has a DataHandler hook subscriber which takes any of the affected arguments as pass by reference; something that has worked problem-free for at least 10 years. This change got picked to the 13.4 branch, in a bugfix version, and has existed in multiple subsequent bugfix versions (.15 to .17, and still not pending in 13.4 branch) since then.

The regression was since then fixed in the main branch by a patch that changed these lines back in an also unrelated change: https://github.com/TYPO3/typo3/commit/c5b387944bc29952dbac12a721cc0e9fe9fbeaf9 but that was never backported to the 13.4 branch like the original change.

Reviews 1