Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46556 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97346 invoked from network); 28 Dec 2009 15:40:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2009 15:40:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.192 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.210.192 mail-yx0-f192.google.com Received: from [209.85.210.192] ([209.85.210.192:48944] helo=mail-yx0-f192.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/72-26502-081D83B4 for ; Mon, 28 Dec 2009 10:40:48 -0500 Received: by yxe30 with SMTP id 30so11854825yxe.29 for ; Mon, 28 Dec 2009 07:40:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=5w04muGj4r9D+DtQzHBZhcD/j1oyGGNFkbvo0goN7R0=; b=GhpNFDBomhZLYmS6EEVyvShKP6MskwF4Re9776wuDcYxYvkDN8Uv1ZLVvm68UzeVMc x4MffMiFSiwCgC/0ajLKFSZdDULb87GzpRHjRFMVwEGD+W/BJ2JjrCYQH39hbEfdZuS/ uQTpPtX5tCZifcrMLUwAxczFOme9PDZAKBIQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=PyY32eAbjJKGry0RBBR0cFLbbqT0XTPXajie3CwZ+d87k20q7pPXeMvMMTkFa8Vn6k CRlksrhzSTh2K3hvkNrrIiA/JF6HEDR+VA3kE8f2amUDwm5kTFW+65NljS0Q3gJtrHnh GLqLX+1UosetE5toZLz40gkZTNoXfnJR/fWAo= Received: by 10.90.20.26 with SMTP id 26mr5840688agt.29.1262014845512; Mon, 28 Dec 2009 07:40:45 -0800 (PST) Received: from ?192.168.1.105? (bb220-255-192-205.singnet.com.sg [220.255.192.205]) by mx.google.com with ESMTPS id 13sm5638821gxk.1.2009.12.28.07.40.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Dec 2009 07:40:44 -0800 (PST) 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> Message-ID: <177EBF51-5808-4570-B517-C2470A1B23D4@gmail.com> To: Ferenc Kovacs In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (7D11) Mime-Version: 1.0 (iPod Mail 7D11) Date: Mon, 28 Dec 2009 23:39:53 +0800 Cc: jvlad , "internals@lists.php.net" Subject: Re: [PHP-DEV] Unsetting loop variables at the end of the loop From: tjerk.meesters@gmail.com (Tjerk Meesters) 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 >>> 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 this! >> 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. preg_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 for >> 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. Please keep your >>> rants 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 ;-) > 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 >