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

Karsten Dambekalns karsten at typo3.org
Thu Jan 22 18:35:00 CET 2009


Hi.

On 22.01.2009, at 14:24, Karsten Dambekalns wrote:
> Well, ereg_ does not include ereg. ;) Replacing ereg() is another  
> task, but IMHO it makes sense to tackle those 159 places in the same  
> patch.
>
> There are some places where a simple str_replace could be used as  
> well, like when replacing "=" against nothing.


Attached is a patch against trunk as of yesterday that
* replaces some ereg* calls against rtrim / str_replace / str_ireplace
* replaces all remaining ereg* uses against preg_*
* does not touch [:alnum:] and [:space:]

Regards,
Karsten
-- 
Karsten Dambekalns
Gimme Five!
http://typo3.org/gimmefive

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9994.KD.patch
Type: application/octet-stream
Size: 131276 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090122/d77875e8/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 312 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090122/d77875e8/attachment-0001.pgp 


More information about the TYPO3-team-core mailing list