[TYPO3-dam-devel] FYI72: #17522: Use of deprecated function 'split()'

Dan Osipov dosipov at phillyburbs.com
Fri Mar 4 16:01:58 CET 2011


Isn't a proper replacement for split() in PHP 5.3+ explode()? Are there 
any advantages to using preg_split()?

On 3/1/11 3:59 PM, Lorenz Ulrich wrote:
> Hi folks,
>
> this is an SVN patch request.
>
> Type: PHP 5.3 fix, no-brainer
>
> Bugtracker reference: http://bugs.typo3.org/view.php?id=17522
>
> Branches: trunk
>
> Problem:
> dam/lib/class.tx_dam_allowdeny.php:302:
> $values = split('\(|\)',$matchList);
> This function is deprecated in PHP 5.3
>
> Solution:
> Replace by preg_split.
>
>
>
> Reported by Michiel Roos. I will commit this as a no-brainer if there
> are no objections within 72 hours.
>
>
>
> Best regards,
>
>
> Lorenz

-- 
Dan Osipov
http://danosipov.com/blog


More information about the TYPO3-team-dam mailing list