Re: ereg deprecation?
| From: | Felipe Pena | Date: | Mon, 31 May 2010 21:45:17 +0000 |
| Subject: | Re: ereg deprecation? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48588@lists.php.net to get a copy of this message | ||
2010/5/31 Johannes Schlüter <johannes@schlueters.de>
> On Mon, 2010-05-31 at 14:09 -0300, Felipe Pena wrote:
> > Hi,
> >
> > 2010/4/28 Michael Maclean <michael@no-surprises.co.uk>
> >
> > > Hi,
> > > I think I asked this before on IRC, but I've forgotten the answer. I
> was
> > > just remembering that the ereg extension was due to be deprecated in
> PHP6 -
> > > does this still apply to trunk?
> > >
> > >
> > I think make no sense to keep it deprecated.
> >
> > Here's a patch for undeprecate ext/ereg in 5_3 and trunk:
> > http://felipe.ath.cx/diff/undeprecate-ereg.diff
> >
> > Any objection? If no, I'll commit it in soon.
>
> I still won't recommend using ereg - the missing binary-safety causes
> quite some broken checks ... is there anything that can be done which
> can't be done using pcre? If not: Less code to maintain -> less
> trouble :-)
>
>
I also won't recommend using ereg, I just thought the unique reason to
deprecate it was the unicode stuff, hence wouldn't make sense to keep it
deprecated... But as there are others motivations, I prefer leave as is too..
--
Regards,
Felipe Pena