Re: Why is ereg being deprecated?

From: Date: Mon, 12 Oct 2009 18:20:55 +0000
Subject: Re: Why is ereg being deprecated?
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-45772@lists.php.net to get a copy of this message
On Mon, Oct 12, 2009 at 05:34:08PM GMT, Olivier B. [php-dev.list@daevel.fr] said the following: > And as far as I know, using ereg_* function is discouraged in the > documentation since PHP 4, 10 years ago, no ? > Discouraged, no. From looking at archive.org, it looks like there has been this note in the ereg docs since 2002: Note: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg(). But that is just a note. Its not saying that preg is the best way to go because ereg will be removed. And there is no version of that page on archive.org that contains the deprecation warning. So its newer than June of 2008. I suspect its been in there since mid 2009, which is hardly enough time. You really need to allow time for the change to make its way through all the support channels. PHP is not a small project anymore, but you guys are treating it like one. Books need to be revised to tell people to use preg_match, websites with tutorials need to be updated and so on. You can't just make a change like this overnight and hope that the PECL function will take over. This is what you call alienating your users. -- Mark S. Krenz IT Director Suso Technology Services, Inc. http://suso.org/

« previous php.internals (#45772) next »