Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85655 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56706 invoked from network); 1 Apr 2015 19:11:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2015 19:11:06 -0000 Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.167 cause and error) X-PHP-List-Original-Sender: dev@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:44953] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/76-21906-8C24C155 for ; Wed, 01 Apr 2015 14:11:06 -0500 Received: from dslb-178-002-078-042.178.002.pools.vodafone-ip.de ([178.2.78.42] helo=[192.168.178.30]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YdO2X-0002Sd-FV; Wed, 01 Apr 2015 21:11:01 +0200 Message-ID: <551C42C4.5080603@mabe.berlin> Date: Wed, 01 Apr 2015 21:11:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Stanislav Malyshev , internals@lists.php.net References: <551C3876.5000004@mabe.berlin> <551C40E3.7090608@gmail.com> In-Reply-To: <551C40E3.7090608@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1427915466;71c8479b; Subject: Re: [PHP-DEV] Deprecate setlocale? From: dev@mabe.berlin (Marc Bennewitz) Hi Am 01.04.2015 um 21:02 schrieb Stanislav Malyshev: > Hi! > >> - make strtoupper/strtolower etc. to work with ascii only > This would be a bad idea, however much better idea is to make *system* > case folding (i.e. methods, classes, etc.) use ascii-only. Which we > already mostly do (see zend_operators.c it explains what's going on). Of > course, there can be instances of using the wrong function. In a dynamic language like PHP it's a very normal and basic case handling language features dynamically including the one described in the bug report (Find an upper case constant for the given input). What I mean is that we should have basic functions addressing this. So for example we need a basic function to upper/lower case only ascii characters. Marc