Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:45778 php.internals:45779 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69396 invoked from network); 12 Oct 2009 18:54:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 18:54:04 -0000 Authentication-Results: pb1.pair.com header.from=rabbitt@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rabbitt@gmail.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 199.181.175.213 as permitted sender) X-PHP-List-Original-Sender: rabbitt@gmail.com X-Host-Fingerprint: 199.181.175.213 smtpgate02.nytimes.com Linux 2.6 Received: from [199.181.175.213] ([199.181.175.213:33314] helo=nyhq-mpa-mailgw2.nyhq.nytint.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/38-54920-C4B73DA4 for ; Mon, 12 Oct 2009 14:54:04 -0400 Received: from nyhq-mpa-mailhub7.nyhq.nytint.com (nyhq-mpa-mailhub7.nyhq.nytint.com [10.50.10.213]) by nyhq-mpa-mailgw2.nyhq.nytint.com (Switch-3.3.2mp/Switch-3.3.2mp) with ESMTP id n9CIs1c7019230; Mon, 12 Oct 2009 14:54:01 -0400 Received: from nioka.nyhq.nytint.com (nioka.nyhq.nytint.com [10.51.102.183]) by nyhq-mpa-mailhub7.nyhq.nytint.com (Switch-3.3.2mp/Switch-3.3.2mp) with ESMTP id n9CIs1vi028494; Mon, 12 Oct 2009 14:54:01 -0400 Message-ID: <4AD37B48.1020900@gmail.com> Date: Mon, 12 Oct 2009 14:54:00 -0400 User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Tomas Kuliavas CC: internals@lists.php.net References: <20091012154610.GJ5179@arvo.suso.org> <20091012160854.GK5179@arvo.suso.org> <4AD356D5.2020605@lerdorf.com> <20091012162227.GL5179@arvo.suso.org> <20091012165734.GN5179@arvo.suso.org> <4AD36D8D.60806@gmail.com> <50994.4e3f9432.1255372442.nsm@avilys.eik.lt> In-Reply-To: <50994.4e3f9432.1255372442.nsm@avilys.eik.lt> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-NYT-MH-Anti-Virus-Result: Clean Subject: Re: [PHP-DEV] Why is ereg being deprecated? From: rabbitt@gmail.com ("Carl P. Corliss") Tomas Kuliavas wrote: [snip] >> >> Looks like preg_* functions are used more often than ereg* functions to >> me... > > preg_quote() and preg_last_error() are support functions. They are used > together with other pcre functions. You double some search results. Actually, searching for those by themselves shows only about 24K worth of results - a far cry from doubling anything. Even adding /spliti?/ for ereg results only increases it to around ~170K results. > If you have to support something, it is not about statistics. Even 1% is > important. Before you use statistics against something, remember that > statistics can be used against you too. Everyone of us is one in seven > billion. Any person is just 0,000000014% in Earth statistics. Sure, it's not empirical data, however it's certainly useful as a means for gauging (albeit roughly) the use of ereg* functions. Regardless, we could really argue statistics all day if we wanted but, that would be beside the point - which is that ereg* functions are, like it or not, deprecated. Not that I mind given the fact that the preg* functions are typically faster anyway. -- Carl