php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #49170 Please undeprecate split/ereg
Submitted: 2009-08-05 12:21 UTC Modified: 2010-11-24 15:01 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: thomas at omerzu dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.0 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas at omerzu dot de
New email:
PHP Version: OS:

Further comment on this bug is unnecessary.

 

 [2009-08-05 12:21 UTC] thomas at omerzu dot de
Description:
------------
Who decided to deprecate the split/ereg functions?

If I wanted to use Perl, I would use Perl.

The syntax of those preg expressions is ridiculous.

Consider the fact that hundreds of programs that do any kind of text parsing use the ereg functions. Developing complicated regular expressions is very time expensive and requires lots of testing.

A conversion to the preg version of the function is not trivial and will require the same amount of time as the original development (or more, as people using standard regular expressions probably are not familiar with that perl stuff and will require additional learing time).

Thus a removal of those functions will cost a huge amount of time and money.

And acutally: WHY?
There are so many obsolete functions in php, why do these innocent functions that hurt nobody have to be removed??

PLEASE leave them as they are!
Everyone is free to use the preg functions, but please leave the standard reg functions!

Thanks!

Best regards, Thomas.
Nearly every of my program contains more or less complicated

Reproduce code:
---------------
---
From manual page: migration53.deprecated
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 15:01 UTC] jani@php.net
-Status: Open +Status: To be documented -Package: Feature/Change Request +Package: *General Issues
 [2010-11-24 15:01 UTC] jani@php.net
Submitted a) in wrong place b) many times.
 [2010-11-24 15:01 UTC] jani@php.net
-Status: To be documented +Status: Bogus
 [2010-11-24 15:01 UTC] jani@php.net
-Block user comment: N +Block user comment: Y
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 21:01:32 2024 UTC