Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39898 invoked from network); 10 Jan 2012 19:33:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2012 19:33:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=philip@roshambo.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=philip@roshambo.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain roshambo.org from 209.85.210.170 cause and error) X-PHP-List-Original-Sender: philip@roshambo.org X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:32993] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/81-29913-2929C0F4 for ; Tue, 10 Jan 2012 14:33:40 -0500 Received: by iaby26 with SMTP id y26so1442577iab.29 for ; Tue, 10 Jan 2012 11:33:35 -0800 (PST) Received: by 10.50.163.101 with SMTP id yh5mr3636930igb.29.1326224014865; Tue, 10 Jan 2012 11:33:34 -0800 (PST) Received: from [192.168.2.100] (c-98-246-13-68.hsd1.or.comcast.net. [98.246.13.68]) by mx.google.com with ESMTPS id z22sm266225865ibg.5.2012.01.10.11.33.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jan 2012 11:33:34 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: Date: Tue, 10 Jan 2012 11:33:32 -0800 Cc: Ferenc Kovacs , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <59C30E1D-C101-4696-AB21-EE167AD56277@roshambo.org> References: <776626C5-4546-4297-9328-6FEA6385B1B0@roshambo.org> To: Pierre Joye X-Mailer: Apple Mail (2.1251.1) Subject: Re: [PHP-DEV] disabling ereg From: philip@roshambo.org (Philip Olson) 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. >=20 > I said: >=20 > " the deprecation is only an information via the documentation" >=20 > as in not adding noises to the language without any good reason. >=20 > On Tue, Jan 10, 2012 at 7:11 PM, Ferenc Kovacs = wrote: >>=20 >>=20 >> On Tue, Jan 10, 2012 at 6:28 PM, Pierre Joye = wrote: >>>=20 >>> 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. >>=20 >>=20 >> 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 >>=20 >> -- >> Ferenc Kov=E1cs >> @Tyr43l - http://tyrael.hu >=20 >=20 >=20 > --=20 > Pierre >=20 > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org