Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21642 invoked from network); 28 Dec 2009 05:59:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2009 05:59:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.210.192 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.192 mail-yx0-f192.google.com Received: from [209.85.210.192] ([209.85.210.192:56020] helo=mail-yx0-f192.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/E4-26502-B29483B4 for ; Mon, 28 Dec 2009 00:59:07 -0500 Received: by yxe30 with SMTP id 30so11512024yxe.29 for ; Sun, 27 Dec 2009 21:59:05 -0800 (PST) Received: by 10.150.55.8 with SMTP id d8mr16774876yba.288.1261979943499; Sun, 27 Dec 2009 21:59:03 -0800 (PST) Received: from ?192.168.200.22? (c-98-234-184-167.hsd1.ca.comcast.net [98.234.184.167]) by mx.google.com with ESMTPS id 8sm4604880yxb.43.2009.12.27.21.59.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Dec 2009 21:59:02 -0800 (PST) Message-ID: <4B384924.3040708@lerdorf.com> Date: Sun, 27 Dec 2009 21:59:00 -0800 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: jvlad CC: internals@lists.php.net References: <31.35.26502.C79573B4@pb1.pair.com> <1B.86.26502.42B673B4@pb1.pair.com> <4B3785AC.2000507@lerdorf.com> <8A.91.26502.CDB083B4@pb1.pair.com> <4B38106C.2080806@lerdorf.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unsetting loop variables at the end of the loop From: rasmus@lerdorf.com (Rasmus Lerdorf) jvlad wrote: > Meanwhile I see that php core developers and Evangelist propose the way of > evolving difficulties. > For example, I used split() for many many years. Now it throws a warning and > it appears > that this function will be removed soon. I have to rewrite all my scripts > and replace > this function with pcreXXXX one and make sure that pcre extension is > built-in everywhere. So BC is > broken in an ugly and a very unpleasant way. > Many php developers who count on split() are simply ignored. Like me, they > have to > spend their time for monkey work. Nobody asked for such changes! Do you think we are deprecating split() just for fun? We are letting you know that you need to start thinking about migrating your code away from non-Unicode aware functions like ereg() and split(). The Web is going entirely Unicode as is PHP 6 and these functions simply do not support Unicode strings. preg_split() is a decent substitute and you should be able to convert to it with only minor changes in your regex. And this has nothing to do with this thread. Please keep your rants at least somewhat on topic. -Rasmus