Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45790 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93043 invoked from network); 12 Oct 2009 19:51:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 19:51:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=joey@joeysmith.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=joey@joeysmith.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain joeysmith.com designates 209.90.98.146 as permitted sender) X-PHP-List-Original-Sender: joey@joeysmith.com X-Host-Fingerprint: 209.90.98.146 host-3.pl1071314.fiber.net Received: from [209.90.98.146] ([209.90.98.146:41845] helo=joeysmith.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/4D-54920-ED883DA4 for ; Mon, 12 Oct 2009 15:51:58 -0400 Received: from joey by joeysmith.com with local (Exim 4.69) (envelope-from ) id 1MxQxb-00014e-Ew for internals@lists.php.net; Mon, 12 Oct 2009 13:53:35 -0600 Date: Mon, 12 Oct 2009 13:53:35 -0600 To: internals@lists.php.net Message-ID: <20091012195335.GB25152@joeysmith.com> 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> <20091012173621.GO5179@arvo.suso.org> <20091012194828.GA25152@joeysmith.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091012194828.GA25152@joeysmith.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [PHP-DEV] Why is ereg being deprecated? From: joey@joeysmith.com (Joey Smith) Ooops: On Mon, Oct 12, 2009 at 01:48:28PM -0600, Joey Smith wrote: > $delimiters = array(chr(1),chr(1),chr(1),chr(1),chr(1),chr(1),'/', '@', '#', '%', '_'); should have been $delimiters = array(chr(1),chr(2),chr(3),chr(4),chr(5),chr(6),'/', '@', '#', '%', '_'); I used these because given the feature-set of ereg, it seems unlikely that people were passing binary strings into ereg() today, but again - the people who *use* ereg should give it some thought. I'm confident there's a simple path forward for you just by providing the function in "userland" if you do so.