Issue Bug Closed

#19282declare marker handling functions of t3lib_parsehtml static

Ingo Renner 09/03/08, 20:57 updated 08/06/10, 13:22

Description

Problem:
1) The marker handling functions in t3lib_parsehtml are often called staticaly although there’re not declared static (even is the case within t3lib_parsehtml itself).
According to http://ilia.ws/files/ez_performance.pdf this results in a drop of performance, other than that it produces notices or warnings and it is not good in general of course.

2) There’s an inconsistency: although a method substituteMarkerArray() exists, there’s no substituteSubpartArray()

Solution:
1) Declare those methods static
2) introduce the missing method substituteSubpartArray()

Notice:
There’s also some cleanup in t3lib_parsehtml and tslib_content. No functionality has been changed except for the addition of the new method in t3lib_parsehtml

(issue imported from #M9283)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.