Monday, October 12, 2009

Re: [BLUG] PHP ereg() question

Ding ding ding. I too develop in Perl a lot and like PCRE better, but
I've been doing PHP development since 1997 and got used to using ereg()
and always thought that ereg was the more official function to use.

I've gotten into this big one-sided debate on the PHP internals mailing
list with all the core devs about how giving notice of removing the
ereg() one or two minor versions prior to PHP 6 is not enough time.
Pretty much everyone there disagrees with me and think its plenty of
time given that PHP 6 won't be out until late 2010.

Obviously none of them ever need to support PHP upgrades and don't
realize that most Linux distros don't include the latest PHP, in fact,
most of them include a version that is not supported by the PHP devs.

And amazingly enough, one guy called me a troll and now everyone is
just telling me to write a patch. Why should I have to write a patch?
Millions of people will be affected by this and they don't realize that
(or seem to care). Its really annoying and I needed to talk to some
more neutral people about it to get my bearings.

According to the people who answered "why this is happening", its
because PHP 6 will have unicode support and they don't feel like making
the changes to ereg to support unicode. Which seems incredibly
irresponsible given that PHP has hundreds of thousands of developers.


On Mon, Oct 12, 2009 at 07:59:24PM GMT, David Ernst [david.ernst@davidernst.net] said the following:
> Yeah, I learned RegExp's in perl, so whenever they aren't like perl, I
> get confused. I don't use PHP all that often, but when I do, I prefer
> the preg-style anyway. I don't know if I've ever use the ereg style.
> Having said that, I don't know why they'd have to remove it and
> require a bunch of people to have to go update existing
> code... harmless enough to leave them in, isn't it?
>
> David
>
>
> On Mon, Oct 12, 2009 at 03:53:04PM -0400, Steven Black wrote:
> >This is Extended Regular Expressions vs. Perl Compatible Regular
> >Expressions?
> >
> >I don't use PHP, so this doesn't impact me, however in general most
> >people expect Perl Compatible Regular Expressions, so I expect it will
> >clear up a number of issues.
> >
> >Cheers,
> >Steven Black
> >
> >On Mon, Oct 12, 2009 at 07:40:30PM +0000, Mark Krenz wrote:
> >>
> >> Any of you on the list use PHP? Did you know they are going to remove
> >> the ereg set of functions in PHP 6 in favor of the PCRE functions
> >> (preg_match, etc.). Could I ask how do you feel about this?
> >>
> >> Thanks.
> >>
> >> --
> >> Mark Krenz
> >> Bloomington Linux Users Group
> >> http://www.bloomingtonlinux.org/
> >> _______________________________________________
> >> BLUG mailing list
> >> BLUG@linuxfan.com
> >> http://mailman.cs.indiana.edu/mailman/listinfo/blug
> >
> >_______________________________________________
> >BLUG mailing list
> >BLUG@linuxfan.com
> >http://mailman.cs.indiana.edu/mailman/listinfo/blug
> _______________________________________________
> BLUG mailing list
> BLUG@linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug
>

--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: