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?
Thanks,
Mark
--
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/
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,
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?Thanks,
Mark--
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/--
--
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9215-8480
MSN: guilhermeblanco@hotmail.com
URL: http://blog.bisna.com
São Paulo - SP/Brazil
The real answer is that there is no Unicode support in the ereg
functions, and like it or not, the world is going Unicode.
-Rasmus
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,
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?Thanks,
Mark--
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/
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,
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
Ok, let me first say that I have no problem with deprecating it in
favor of PCRE. Being a heavy Perl developer too, I'm more used to PCRE
syntax anyways so it will be easier to only remember one syntax between
languages.
Secondly, I've been using PHP since version 2 and as far as I can
remember ereg and the POSIX regex syntax has been in PHP for that long
if not as long as PHP has existed.
Deprecating functionality in software is tricky enough when its a
minor function, but when its a major function in a major programming
language it is something entirely different. Removing a function
because its fat, slow and doesn't have unicode support isn't enough of a
justification for removing a major function like ereg that is used in
probably 90% of all PHP applications. If there was some kind of
security issue that couldn't be fixed without removing it then that
would be different, but from what you said I don't think there is.
PHP 6 already has some major changes to it that will affect many
people and slow its adoption. Removing ereg might kill adoption of it
altogether or run the risk of PHP being forked.
My suggestion is that you delay removal of the function until PHP 7 or
even 8. This will give people a lot more time to learn about change and
most major app developers will find out about it and make the change.
Also, distributions that package PHP will have at least a couple minor
versions released prior to it being removed, which I think is VERY
important.
Please, let's discuss this.
Mark
On Mon, Oct 12, 2009 at 03:51:48PM GMT, Guilherme Blanco [guilhermeblanco@gmail.com] said the following:
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,
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?Thanks,
Mark--
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/--
--
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9215-8480
MSN: guilhermeblanco@hotmail.com
URL: http://blog.bisna.com
São Paulo - SP/Brazil
--
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/
[Please stop feeding the troll.]