Feature #19446

substituteMarkerArrayCached is too strict for older extensions

Added by Ernesto Baschny almost 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-10-10
Due date:
% Done:

0%

PHP Version:
5.0
Tags:
Complexity:
Sprint Focus:

Description

Many extensions using substituteMarkerArrayCached will fail in 4.3 as the function changed. All arguments has to be an array, otherwise you get following error:

Catchable fatal error: Argument [2,3,4] passed to tslib_cObj::substituteMarkerArrayCached() must be an array, null given

Thanks for Steffen Kamper for reporting. After some discussion in the -dev list, the idea came up to keep the type hinting but to allow the special case "null" (also uninitialized variable) to keep older extensions happy.

(issue imported from #M9533)


Related issues

Related to TYPO3 Core - Bug #19282: declare marker handling functions of t3lib_parsehtml static Closed 2008-09-03
Related to TYPO3 Core - Bug #21857: Type hints and optional parameters in substituteMarkerArrayCached Closed 2009-12-14

History

#1 Updated by Ernesto Baschny almost 11 years ago

commited to trunk (rev. 4307)

Also available in: Atom PDF