Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46558 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 168 invoked from network); 28 Dec 2009 15:48:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2009 15:48:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.227 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: 209.85.220.227 mail-fx0-f227.google.com Received: from [209.85.220.227] ([209.85.220.227:61521] helo=mail-fx0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/03-26502-F53D83B4 for ; Mon, 28 Dec 2009 10:48:48 -0500 Received: by fxm27 with SMTP id 27so9705811fxm.23 for ; Mon, 28 Dec 2009 07:48:44 -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=ItZA0hOkdhmfUjvRLa3J0WaUWe4zkRPtrL92tvBHCKE=; b=k84dF5oNf5XKnb/ybnF3iaPp1K9FpEIGNZLdCWJQsNeZkEhanxLjr2nLqqgSjc5REL tl8P1df96eTrvEU8ur7kEpaI+CYcEIHWRdxKla/3ds3ZTp10knDTqhHF/WD+V3CJXGae QzeaoI1urVP8SptdHVBUnob+cFsLC6vnl7yuk= 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=MPj3kLQnbZtppYza8VvxwKCx5du2MLkAfV8tfN7Y2R1dC7CVjCaBCtBCSj0KlKOOP4 +YxS6euSXrh9TkTz9ddYjOYM07fFyh75sJUvczxhtYRbRLSvYlKl1UsyV6QvQd8h7QkG 04njjMPnHwTNrpUlGADSGAzpLG0uqe9TD+caM= MIME-Version: 1.0 Received: by 10.239.148.8 with SMTP id d8mr36379hbb.109.1262015321876; Mon, 28 Dec 2009 07:48:41 -0800 (PST) In-Reply-To: <177EBF51-5808-4570-B517-C2470A1B23D4@gmail.com> References: <31.35.26502.C79573B4@pb1.pair.com> <4B3785AC.2000507@lerdorf.com> <8A.91.26502.CDB083B4@pb1.pair.com> <4B38106C.2080806@lerdorf.com> <4B384924.3040708@lerdorf.com> <177EBF51-5808-4570-B517-C2470A1B23D4@gmail.com> Date: Mon, 28 Dec 2009 16:48:41 +0100 Message-ID: To: Tjerk Meesters Cc: jvlad , "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 4:39 PM, Tjerk Meesters wrote: > On 28-Dec-2009, at 20:39, Ferenc Kovacs wrote: > >> 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 migratin= g >>>> 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 >>> this! >>> Do you think it's safer to keep thinking and have an opportunity to mis= s >>> anything >>> dangerous in the logs just becase they are flooded. >>> >>>> The Web is going entirely Unicode as is PHP 6 and these functions simp= ly >>>> do not >>>> support Unicode strings. =C2=A0preg_split() is a decent substitute and= you >>>> 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 fo= r >>> php6 that will make them >>> on the fly? Why don't you consider the other scenarios that would >>> maintain >>> the language BC? >>> >>>> >>>> And this has nothing to do with this thread. =C2=A0Please keep your ra= nts at >>>> least somewhat on topic. >>> >>> It has direct relation to this thread because it's all about the policy >>> of >>> 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. >> > Besides, nobody's forcing you to "upgrade" to php6. Pragmatism applied I > would just retrofit split() to preg_split() in userland whenever not > defined, since by right pcre cannot be disabled ;-) we are talking about php5.3. It got deprecated in that version, and there were emails on the list about discontinuing the 5.2 branch as soon as the 5.3 is ~stable. Tyrael >> >> 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 >>> >>> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >