[TYPO3-core] RFC: feature #2743
Martin Kutschker
Martin.Kutschker at blackbox.net
Thu Mar 2 16:54:36 CET 2006
Wolfgang Klinger <wolfgang at stufenlos.net> writes on
Thu, 02 Mar 2006 15:11:30 +0100 (MET):
>
> *hiya!*
>
> Type: patch / feature
>
> Speed up substituteConstants with preg_replace_callback
> BT reference: http://bugs.typo3.org/view.php?id=2743
>
> preg_replace_callback is available with PHP >= 4.0.5
>
> I tested it myself, it's definitely faster.
Didn't test it but looks fine.
Perhaps you could add this comment:
// replace {$CONST} if found in $this->flatSetup, else leave unchanged
return isset($this->flatSetup[$matches[1]]) ? $this->flatSetup[$matches[1]] : $matches[0];
+1
Masi
More information about the TYPO3-team-core
mailing list