Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8428 invoked from network); 11 Jul 2012 09:41:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2012 09:41:05 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:33026] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/34-01957-F2A4DFF4 for ; Wed, 11 Jul 2012 05:41:03 -0400 Received: by lbgc1 with SMTP id c1so1681223lbg.29 for ; Wed, 11 Jul 2012 02:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zNva7Ru9kdfyW4SJ5YeKYvJEHlZpkQsBrAmEpnYuCMk=; b=EzwaOZguRp1Y2GEKwBh5lUho2VqEZEzAnokNfdXsnU6d49Niwc2Iky+D9UQ8+kNVv0 RwDq1Pir+JgJWx+4jJMv+IRtvfPe9JRmo92aHHQn7M877H++G1niaT68cEZEZO9SxfPo jMeSKnPBz90o7OPFq4/W3SrMNWgq/10okQWN0cHp2+ZBkgJtA4dW2h8rEMKJjXHO76b6 x6/jicldOK34dVUFVHGZylszJBps6sHfVcGwjClBzQoZ6ILsxEXIkauWUwqSRY5uYGxm 3ia+vz4uPe8bKxk+Gb70/ZeWDFAefae1CnR90jnQi3/ivyfN9sG+jgxjpdcW6S/jzVfp a3Cw== MIME-Version: 1.0 Received: by 10.152.132.40 with SMTP id or8mr48487221lab.24.1341999660556; Wed, 11 Jul 2012 02:41:00 -0700 (PDT) Received: by 10.152.114.70 with HTTP; Wed, 11 Jul 2012 02:41:00 -0700 (PDT) In-Reply-To: <4FFD11C1.3090007@sugarcrm.com> References: <4FFD11C1.3090007@sugarcrm.com> Date: Wed, 11 Jul 2012 11:41:00 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals , =?ISO-8859-1?Q?Johannes_Schl=FCter?= Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] bug 18556 - tolower & locales From: nikita.ppv@gmail.com (Nikita Popov) On Wed, Jul 11, 2012 at 7:40 AM, Stas Malyshev wrote: > Hi! > > I've prepared a fix for bug #18556 - see > https://github.com/php/php-src/pull/126 > A slight complication there is that for internal operations we probably > want locale-independent lowercasing, while for regular string operations > we probably want to stay with locale-depenedent one. That's how I > implemented it, even though it adds a bit of complexity, but I think > it's the best way to solve it. Any comments/objections/improvements? With this patch, will it still be possible to use foreign class names correctly? Like writing them in Russian and expecting the case-insensitivity to work correct? Nikita