Actions
Bug #19891
closedsplit() is deprecated in PHP 5.3
Start date:
2009-01-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
split() is depreceted and should be replaced by preg_split()
(issue imported from #M10231)
Files
Updated by Steffen Kamper almost 16 years ago
Hi Karsten,
i think str_split is the better way for replace as it's much faster than preg_split.
btw - i found 77 places, but some of them are JS expressions in php-file.
Is there a list of deprecated functions for 5.3 anywhere?
Updated by Karsten Dambekalns almost 16 years ago
There are more split() uses than I found in my first round, yes.
As to the proper replacement - it depends on the use. Could be preg_split() or explode() depending on the split-"pattern". str_split() is probably only in rare cases correct.
I'll prepare another patch.
Updated by Steffen Kamper almost 16 years ago
You're right - looking to str_split again it's different as it uses defined length for splitting.
Actions