Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95239 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96735 invoked from network); 16 Aug 2016 17:14:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2016 17:14:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:57033] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/98-36656-C0A43B75 for ; Tue, 16 Aug 2016 13:14:53 -0400 Received: from [192.168.2.103] ([79.243.112.54]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MOwY7-1bVbUF2alr-006MXM; Tue, 16 Aug 2016 19:14:48 +0200 To: Yasuo Ohgaki , "internals@lists.php.net" References: Message-ID: <15538953-0065-ad02-cfed-26f9c04fea18@gmx.de> Date: Tue, 16 Aug 2016 19:15:01 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:73q1ODQXPJ5BvyN7/y2+IK/8Ro+wYhBh+GLn/Zc4WzjVgDEuOEG 0yTd/wiIwZ2y3XgWFPyPIOaZ4WWscmn5F17Sq9Rj3lNuAbC96hy9T7/HcAVJk9eckuu+brd aB9flwS32NZ0afuBlFRR4CmCk2NdTmoDNzyhhe1CFQ7WCWMvt4ogpfVIn1u7Qsmw3jMNZOx +QYwNiiDdEhhaT0V9TpjQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:yDZE144OH+M=:GshvVwNRhtrTuyhDka8+RC EegKngn1kdprjVg+B2/gO3sRyr9Wjona4XE7Pme4qLcShUncykXzmtakK6+7qddEOGpHhr845 16OWJ7Mop6lHqbWuT8RcecqEzfvdQ/BWFk/ygjZsdNeLapnKURudn4cApr5b92hvROdaPXkgT RRx9uBeP0vOF+DY/0ct9UBflUkHIoEOpUE6wxeLougFbyLkUeRriBY3qdIwS88gCW/rBJTOvQ g8Q52VJwShKweg/YOJMUFVZaLyJjNeUg9+u7127ToZ65eJUvoEuMnNMaZXcHpZ898pjv86m5C vczzp9nTNbm5OzMm7EJNdCd+fwAWxlBrobOS1t1LVQN8hXytFyNcu35YsFuYbGtaYxiehPHVD BqtfZH0a0ZwXdklf8dOy8sVtdt8Zmce64KSLcKMzlZ0+DPxWyslduzdm1oXFSLrJ4wkn2o4TB 2Pw9z6F10bKaybL4uGJ3VE7kk2ctoPJTFhtKBpv9hDyOQ402zoURtp1ELgCObCcFgFNuxzP0f Vb6UAA2tTyDSzZhAuGRXv0NtKcaqkS0KZSKd6Iv4FyZOGO9xyVTePhBLImaXNThKlliqI3u8I /xA+Ncfd4bWi9NDmVGoY4qKTn595ae4nenU9r8oArsUZ+LBQRBJgWnzuXFC3olPsnbh54WUlm iK2eRP6YTZhSdXQViNMydZmLdJpbw0t3fp4kpvprkp4D6LREDVdYi9u3pDlOt8ywho2fEWqXD 1QXVYcpZTmInTTOB0ZTWaosmLEwCo5B/Cd4cKaMaPB/gvAWYujQWgYencc0lNjqB+HR9l3o1R RaA6PR9 Subject: Re: [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode() From: cmbecker69@gmx.de ("Christoph M. Becker") On 16.08.2016 at 00:00, Yasuo Ohgaki wrote: > On Mon, Aug 15, 2016 at 12:17 PM, Yasuo Ohgaki wrote: >> utf8_decode() and utf8_encode() are not needed and causing problems >> than solving. >> >> https://wiki.php.net/rfc/remove_utf_8_decode_encode >> >> Proposal >> - Document deprecation them now >> - Remove them from 7.2 >> >> I think only few users are using and they shouldn't have problem using >> mbstring/iconv/intl functions. >> >> Any comments? > > Many people concern about BC. It's reasonable. > How about document deprecation of them now? And not mention when they > will be removed. It may exist for long, but users are better to use generic > encoding conversion functions. > > The additional note for them might be > > utf8_encode/decode() is deprecated in favor of other encoding > conversion features. e.g. iconv(), UConverter class and > mb_convert_encoding(). I'm afraid that's too easily overlooked. Actually, nobody who knows the working of utf8_(en|de)code would even have a look at its man page, particularly, if they're not working on the code that uses these functions. Anyhow, actually I think that utf8_(en|de)code are not the real problem, but rather the complete XML extension is. xml_set_object() causes memory issues which have to be handled in userland[1], xml_parse_into_struct() is more than doubtful[2] and the whole concept of attaching callbacks manually (instead of extending a base class) is so clumsy[3]. Furthermore the extension is basically without active maintainer. Thies made his last commit in 2002, and Rob made only 1 bugfix since 2010, even though there are several unresolved issues[4]. Unless a new active maintainer steps forward, we should consider to move ext/xml to PECL, in which case the deprecation of utf8_(en|de)code might be unnecessary. [1] [2] [3] [4] -- Christoph M. Becker