Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99846 invoked from network); 12 Oct 2009 15:57:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 15:57:58 -0000 Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Received: from [66.11.173.122] ([66.11.173.122:39212] helo=interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/09-54920-30253DA4 for ; Mon, 12 Oct 2009 11:57:56 -0400 Received: by interjinn.com (Postfix, from userid 5001) id C413186B070; Mon, 12 Oct 2009 11:57:52 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gruknuk.suds X-Spam-Level: X-Spam-Status: No, score=-4.4 required=7.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from [192.168.1.3] (blobbie [192.168.1.3]) by interjinn.com (Postfix) with ESMTPS id E061586B06E; Mon, 12 Oct 2009 11:57:51 -0400 (EDT) Message-ID: <4AD351FF.6090009@interjinn.com> Date: Mon, 12 Oct 2009 11:57:51 -0400 Organization: InterJinn User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Guilherme Blanco CC: Mark Krenz , internals@lists.php.net References: <20091012154610.GJ5179@arvo.suso.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Why is ereg being deprecated? From: robert@interjinn.com (Robert Cummings) Guilherme Blanco wrote: > It was fat, slow and everything that you can do with POSIX regex you > can easily do with PCRE regex, which is faster. > > It is a decision forever. Do not expect it to come on PHP 5.4 (?) or PHP 6. > > Cheers, > > On Mon, Oct 12, 2009 at 12:46 PM, Mark Krenz wrote: >> I just found this out a couple days ago when I checked the ereg manual >> page for something and was shocked. I searched around a bit but >> couldn't find a straight answer on why this function is being removed? >> Did the deprecation notice just get made in 5.3 or has it been there >> longer than that? Just to add... I've found many regular expressions to evaluate an order of magnitude faster via preg than via ereg. The speed difference is well worth your time switching to preg. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP