Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45772 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58373 invoked from network); 12 Oct 2009 18:20:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 18:20:58 -0000 Authentication-Results: pb1.pair.com header.from=mark@suso.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mark@arvo.suso.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain arvo.suso.org from 66.244.94.5 cause and error) X-PHP-List-Original-Sender: mark@arvo.suso.org X-Host-Fingerprint: 66.244.94.5 arvo.suso.org Linux 2.5 (sometimes 2.4) (4) Received: from [66.244.94.5] ([66.244.94.5:33643] helo=arvo.suso.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/E5-54920-98373DA4 for ; Mon, 12 Oct 2009 14:20:58 -0400 Received: by arvo.suso.org (Postfix, from userid 1009) id 8CBD888060; Mon, 12 Oct 2009 18:20:55 +0000 (GMT) Date: Mon, 12 Oct 2009 18:20:55 +0000 To: internals@lists.php.net Message-ID: <20091012182055.GR5179@arvo.suso.org> References: <20091012154610.GJ5179@arvo.suso.org> <20091012160854.GK5179@arvo.suso.org> <4AD356D5.2020605@lerdorf.com> <20091012162227.GL5179@arvo.suso.org> <20091012165734.GN5179@arvo.suso.org> <4AD3638B.6080103@cschneid.com> <4AD36890.2030206@daevel.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AD36890.2030206@daevel.fr> User-Agent: Mutt/1.5.11 Subject: Re: [PHP-DEV] Why is ereg being deprecated? From: mark@suso.org (Mark Krenz) 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/