Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85578 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96287 invoked from network); 31 Mar 2015 08:07:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2015 08:07:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:34684] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/13-06567-AC55A155 for ; Tue, 31 Mar 2015 03:07:38 -0500 Received: by qcay5 with SMTP id y5so7376035qca.1 for ; Tue, 31 Mar 2015 01:07:35 -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=wJBIM79CtW7mxNFl48v4zBpGW6nigqSYMiYDGPWcUWg=; b=BaWy05N1S71ItfXqfbDGMOOJvzeMHZcg4ahoa+0rmmevWWl4WIzKokJssEZ3okwvcG P/0MI2WFlpz9lqooWVo40+JR16y3FE6nJ6MYwr+MiOIpPQr7t7R0A9ned+d+tv2KJNvM 9JpCq7+H6PfIfyJQSN+EUELiFCiA/7m2FuyqudZudfgdjr9v29v5vPq125YavJ4HiakJ 6Qw2vYL7dFnxO7xprpM6Xifxb+o9nm9d7Lj5SCh6V4rzFfFBicHro/7cWt2/JMQhsmZw 0ls6NY3lD+i5R5WU9kykZWKKF6CljVLdGV2iRS7FfbrfXJfcy300zm+tXgz8SpgRe3cw ca3Q== MIME-Version: 1.0 X-Received: by 10.140.95.215 with SMTP id i81mr45428451qge.4.1427789255896; Tue, 31 Mar 2015 01:07:35 -0700 (PDT) Received: by 10.96.39.195 with HTTP; Tue, 31 Mar 2015 01:07:35 -0700 (PDT) In-Reply-To: References: <5515D57F.9070505@gmail.com> Date: Tue, 31 Mar 2015 15:07:35 +0700 Message-ID: To: Tony Marston Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Deprecate or remove mbstring function overloads in PHP 7 From: pierre.php@gmail.com (Pierre Joye) On Tue, Mar 31, 2015 at 3:02 PM, Tony Marston wrote: > "Nikita Popov" wrote in message > news:CAF+90c9ZCE4rrdtwoqwnBE=u_s4aSXHU4N_Jia+40OY_gumjaA@mail.gmail.com... > >> >> On Fri, Mar 27, 2015 at 11:11 PM, Stanislav Malyshev >> wrote: >> >>> Hi! >>> >>> I was never happy about this particular hack but that said, unless we >>> *know* it is not used widely (and I suspect it is in Japan etc. where we >>> don't have a lot of visibility due to language barrier) we can't really >>> remove it. >> >> >> >>> Also, I'm not sure why should we remove it. Yes, it's a PITA for the >>> code, but looking at it in another direction, it is only a PITA if >>> people actually turn it on, which means they're using it (otherwise why >>> turn it on?). Deprecating it may be ok provided we actually have some >>> proposal as to what people should do instead. >>> >>> If we have consensus on deprecating it, I don't think it's a problem >>> have it done in 7.0 since it's not a substantial code/feature change and >>> beta period provides ample time for people to scream if it's >>> unacceptable. If there's no consensus yet, I'd go for 7.1. >>> >> >> From this thread, I'd say we have a consensus to deprecate it. From the >> Japanese side, both Yasuo and Masaki agree that this should be dropped and >> Masaki also linked a bug report where it is stated that the original >> author >> of this functionality agrees that this should be deprecated. It also >> contains a link to a discussion on a Japanese PHP dev ML, where, as far as >> Google Translate can tell me, everyone agreed that that we should do away >> with it. >> >> As to what people should use instead: For the quick hack to make things >> work: a sed script. Apart from that, implementing proper multibyte >> handling >> in applications. >> >> Nikita > > > But what is "proper" multibyte handling? Where is it documented? Just to be sure it is clear: We are not talking about deprecating the mbstring extenson, not at all. What we refer to is about deprecating the PHP functions overloading in mbstring. This can be enabled using: http://php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload and http://php.net/manual/en/mbstring.overload.php So far, I know nobody outside the original authors actually using it. And I asked quite a lot of companies and devs around here (hint, Asia). Cheers, -- Pierre @pierrejoye | http://www.libgd.org