Re: Why is ereg being deprecated?
| From: | Robert Cummings | Date: | Mon, 12 Oct 2009 15:57:51 +0000 |
| Subject: | Re: Why is ereg being deprecated? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45747@lists.php.net to get a copy of this message | ||
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 <mark@suso.org> wrote: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 PHPI 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?