Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46551 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72338 invoked from network); 28 Dec 2009 12:39:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2009 12:39:58 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.153 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 72.14.220.153 fg-out-1718.google.com Received: from [72.14.220.153] ([72.14.220.153:15463] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/0E-26502-D17A83B4 for ; Mon, 28 Dec 2009 07:39:58 -0500 Received: by fg-out-1718.google.com with SMTP id 19so3449706fgg.11 for ; Mon, 28 Dec 2009 04:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EtOddVfVyzXCCRSd53ZzznnkUr1zfL+cdA5v+q5nGVI=; b=UYYP+GdDDuKOIFZ7UPNLSuNSHEQwajsQmMjBUGu+EzFWLFsDb7cP5IgpDzJVJOoPdY 2g2rYQwF8HJ9Hmsg/Ix/Ro0SfpZ3Gluuh7FkV4Yzq3gNuSrFs3rADojLJg+GMnN/wbV9 4iJ+k4hk/UYqWH2obtiXoYGCbOAgx9YejYhYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RoJOXyE/Dmw7CKqGBpkxjlx/quKWO+9F1PvTP/SMNKukfWMFMhl7dmuId4N4sl8Dzh JverghjReczZsISo56hPw3hYADAebJAsMv7+jnQLIjrcsXOBqtrWePgen8J1dOPiBKg/ WWy4+aGUGzI6tkY348hGCedH3iNvbHMZxqxH0= MIME-Version: 1.0 Received: by 10.239.139.134 with SMTP id t6mr1769471hbt.12.1262003990864; Mon, 28 Dec 2009 04:39:50 -0800 (PST) In-Reply-To: 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> <4B384924.3040708@lerdorf.com> Date: Mon, 28 Dec 2009 13:39:50 +0100 Message-ID: To: jvlad Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Unsetting loop variables at the end of the loop From: tyra3l@gmail.com (Ferenc Kovacs) On Mon, Dec 28, 2009 at 11:58 AM, jvlad wrote: >> Do you think we are deprecating split() just for fun? > > Yes, exactly. It's just made for _fun_ by core developers and brought > headache > to people developing in php. > >> 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(). > > Well, this filled up my php logs with some million records telling me thi= s! > Do you think it's safer to keep thinking and have an opportunity to miss > anything > dangerous in the logs just becase they are flooded. > >> The Web is going entirely Unicode as is PHP 6 and these functions simply >> do not >> support Unicode strings. =C2=A0preg_split() is a decent substitute and y= ou >> should be able to convert to it with only minor changes in your regex. > > If these changes are minor, why don't you provide a version of split for > php6 that will make them > on the fly? Why don't you consider the other scenarios that would maintai= n > the language BC? > >> >> And this has nothing to do with this thread. =C2=A0Please keep your rant= s at >> least somewhat on topic. > > It has direct relation to this thread because it's all about the policy o= f > the changes in the language. > Some pain changes are already done, some painless are not allowed. > Whould you please make your position more public and clearer? > as far as I see, the changes depends on how many work has to be done, to preserve something. posix functions like split, and so could have been modified to work with the unicode strings, but nobody cared enough. now this request is easier to leave this way, because this scenario needs zero work against the proposed solutions. but hey: patches are welcome! :/ Tyrael > -jv > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >