Issue Task Closed

#32773fe_adminLib.inc crashes on 5.3 because usage of preg_spliti()

Sven Burkert 12/22/11, 09:29 updated 10/02/18, 12:37

Description

I get the error
“Fatal error: Call to undefined function preg_spliti() in /…/typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc on line 1494“
I can’t find any documentation of function preg_spliti. PHP version 5.3.8 is used on the server. You are sure this function exists?

Perhaps better use this solution:

- $parts = preg_spliti('<title>|</title>', $content, 3);
+ $parts = preg_split('/<title>|<\/title>/i', $content, 3);

(issue imported from #M12889)

Reviews 0

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