Project

General

Profile

Actions

Feature #19446

closed

substituteMarkerArrayCached is too strict for older extensions

Added by Ernesto Baschny about 16 years ago. Updated over 14 years ago.

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

0%

Estimated time:
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 2 (0 open2 closed)

Related to TYPO3 Core - Bug #19282: declare marker handling functions of t3lib_parsehtml staticClosedIngo Renner2008-09-03

Actions
Related to TYPO3 Core - Bug #21857: Type hints and optional parameters in substituteMarkerArrayCachedClosedJigal van Hemert2009-12-14

Actions
Actions #1

Updated by Ernesto Baschny about 16 years ago

commited to trunk (rev. 4307)

Actions

Also available in: Atom PDF