On Mon, Oct 12, 2009 at 05:34:08PM GMT, Olivier B. [php-dev.l...@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/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php