Re: disabling ereg

From: Date: Tue, 10 Jan 2012 19:33:32 +0000
Subject: Re: disabling ereg
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-57330@lists.php.net to get a copy of this message
Hi! This thread has veered off-course. So to summarize: (1) ereg is deprecated, and usage is discouraged (2) It emits E_DEPRECATED errors as of PHP 5.3 (3) We cannot disable/remove ereg at compile time (today) I'm suggesting we alter (3) so that we, the people who compile PHP, can optionally remove this extension from our PHP 5.4+. This means adding --without-regex to go along with --with-regex, which is the current compile-time option for ext/ereg. Any objections? Regardless of deprecation status, this option should be available. Or if not, why? Regards, Philip On Jan 10, 2012, at 10:41 AM, Pierre Joye wrote: > Can you please carefully read what I wrote? Thanks. > > I said: > > " the deprecation is only an information via the documentation" > > as in not adding noises to the language without any good reason. > > On Tue, Jan 10, 2012 at 7:11 PM, Ferenc Kovacs <tyra3l@gmail.com> wrote: >> >> >> On Tue, Jan 10, 2012 at 6:28 PM, Pierre Joye <pierre.php@gmail.com> wrote: >>> >>> what I mean is that, as far as I remember, the deprecation is only an >>> information via the documentation. We did not want to break BC and all >>> that as it is now emulated through pcre. >> >> >> no, we deprecated it, and albeit it was a discussion to un-deprecate it, we >> kept it: >> I think we have enough reasons to keep it deprecated as we have much better >> alternative (pcre) which we want to recommend to the users. >> http://lxr.php.net/opengrok/xref/PHP_5_4/ext/ereg/ereg.c#54 >> >> -- >> Ferenc Kovács >> @Tyr43l - http://tyrael.hu > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | > http://www.libgd.org

« previous php.internals (#57330) next »