[TYPO3-core] RFC #9994: Bug: ereg_replace is deprecated in PHP 5.3 alpha3

Niels Pardon mail at niels-pardon.de
Sun Dec 21 22:43:40 CET 2008


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=9994

Branches:
TYPO3_4-1, TYPO3_4-2 and trunk

Problem:
ereg_replace() is marked deprecated in PHP 5.3 alpha3 and thus PHP
issues a warning message.

Solution:
Use preg_replace() instead of ereg_replace().

Notes:
Patch is against current trunk.

I used \w for [:alnum:] and \s for [:space:].

Greets,

Niels
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 9994_TYPO3_trunk.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081221/9dee9b7b/attachment-0001.txt 


More information about the TYPO3-team-core mailing list