Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:95368
Return-Path: <mike.php.net@gmail.com>
Mailing-List: contact internals-help@lists.php.net; run by ezmlm
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 75175 invoked from network); 22 Aug 2016 10:55:48 -0000
Received: from unknown (HELO lists.php.net) (127.0.0.1)
  by localhost with SMTP; 22 Aug 2016 10:55:48 -0000
Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass
Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass
Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.45 as permitted sender)
X-PHP-List-Original-Sender: mike.php.net@gmail.com
X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com  
Received: from [74.125.82.45] ([74.125.82.45:37092] helo=mail-wm0-f45.google.com)
	by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
	id F2/05-35246-23ADAB75 for <internals@lists.php.net>; Mon, 22 Aug 2016 06:55:47 -0400
Received: by mail-wm0-f45.google.com with SMTP id i5so137327766wmg.0
        for <internals@lists.php.net>; Mon, 22 Aug 2016 03:55:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=sender:subject:to:references:from:message-id:date:user-agent
         :mime-version:in-reply-to;
        bh=Dw630luIA7YslOrW5bPW8ramtqwI5nv0k3eyivHggU4=;
        b=HjB3CkjYQvx8+rnMAQV/G3F3inEhexc7+Xka5alU9xnzNxxbyiQUxlbZQ2ZzC6HaVj
         t4YC1yeKceyVHIIz8Z8H3xSMNY/WkylJOV4TQa5AJeaiQJvpBwyp+ztLU/hTmR8/rpMO
         KncpC9cEtg7OdjwgK9mzLZ14XZyMOMS1SI0e/J1OVlGke6fQifd4fEmEb8RJNiLpJU9r
         Fq4X7N+LoResIBXQtQGrHt0ZAsPXgIQfJKFmcjdfGHhmfHlWt95lTqbM7DOLf1hjNWnE
         iLqn2Fpn+nVCG81dWoD76p8W+tZ/OzMtuWSNhuM90zrVtDMyGeXZZGTs1Xgs3XaQrwm9
         mW1g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:sender:subject:to:references:from:message-id
         :date:user-agent:mime-version:in-reply-to;
        bh=Dw630luIA7YslOrW5bPW8ramtqwI5nv0k3eyivHggU4=;
        b=UZ1XxSeokNuoss9YjoDXsfA2rp5lIIr6zUqAM7P9F7axiRwY/CZzjDMlRpgeqFuEQw
         NQuOQHy1pp4ao67lQZV7an3IK+6qpaeiR6HCnNlGf1nXt6P5yVMfAiAsiWnOuAhvNTTZ
         z2krjI5r84dD3bTREemqXXxvycM+T1E8vFQzS04Ny4bc7nWB6tgkd0rsXzinHEyQyYZl
         Thzbwb8CkSBWAAXDVR+2kNXHJhNPO42ya+OxA1RpH1Im1cBcenFWCHcdXBCUipEwrRNv
         sF4vUXQBvZ8SLcbaVYvmjycUHxHkdcUj46pBe2RzfauJwGjesdr68rRUgtCaD1L/oSMF
         H6kw==
X-Gm-Message-State: AEkoousVjUlOMzK6UjW+mcGqDqTW0oyDce3ENoy5Mos0sj0hc48xZetMirs8Jn2+F0fR9w==
X-Received: by 10.194.185.116 with SMTP id fb20mr17036690wjc.32.1471863343900;
        Mon, 22 Aug 2016 03:55:43 -0700 (PDT)
Received: from [192.168.2.120] (89-104-28-113.customer.bnet.at. [89.104.28.113])
        by smtp.googlemail.com with ESMTPSA id f4sm20666383wmf.8.2016.08.22.03.55.42
        for <internals@lists.php.net>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 22 Aug 2016 03:55:42 -0700 (PDT)
Sender: Michael Wallner <mike.php.net@gmail.com>
To: internals@lists.php.net
References: <CAGa2bXYGUhihdbMMBQB7FQ6CnmYqrB_x2YVjdZTvT8gDs59oOQ@mail.gmail.com>
 <CAEZPtU7Zq=RpNMYz6dRCaiUVLFf4S68MOQHxPFVBsWaRZu9cJQ@mail.gmail.com>
 <ac86fed5-56b5-84d0-d54d-95cce8f36c2d@gmail.com>
 <CAGa2bXYBLCROkv+BBm4DoyJz=S5uMdqttAmWGE2YiHJpRribHQ@mail.gmail.com>
 <8f77da79-e843-aee0-e68d-e132ada5e782@gmail.com>
Message-ID: <89dc4d22-7f4f-3dde-deae-33fdfc87324d@php.net>
Date: Mon, 22 Aug 2016 12:55:41 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <8f77da79-e843-aee0-e68d-e132ada5e782@gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="Ruj67OELPm732oH6iXcW1WAUm9ReQtRIN"
Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Remove utf8_decode() and
 utf8_encode()
From: mike@php.net (Michael Wallner)

--Ruj67OELPm732oH6iXcW1WAUm9ReQtRIN
Content-Type: multipart/mixed; boundary="Su4qifS5dekRWcLam8w2U3rsVKTiTcuHL"
From: Michael Wallner <mike@php.net>
To: internals@lists.php.net
Message-ID: <89dc4d22-7f4f-3dde-deae-33fdfc87324d@php.net>
Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Remove utf8_decode() and
 utf8_encode()
References: <CAGa2bXYGUhihdbMMBQB7FQ6CnmYqrB_x2YVjdZTvT8gDs59oOQ@mail.gmail.com>
 <CAEZPtU7Zq=RpNMYz6dRCaiUVLFf4S68MOQHxPFVBsWaRZu9cJQ@mail.gmail.com>
 <ac86fed5-56b5-84d0-d54d-95cce8f36c2d@gmail.com>
 <CAGa2bXYBLCROkv+BBm4DoyJz=S5uMdqttAmWGE2YiHJpRribHQ@mail.gmail.com>
 <8f77da79-e843-aee0-e68d-e132ada5e782@gmail.com>
In-Reply-To: <8f77da79-e843-aee0-e68d-e132ada5e782@gmail.com>

--Su4qifS5dekRWcLam8w2U3rsVKTiTcuHL
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 22/08/16 12:44, Rowan Collins wrote:

> As far as I can see, these functions exist because the XML parser
> infrastructure needed them, and someone thought it might be handy to
> expose them to users. Funnily enough, the internal versions actually
> take a parameter for the target encoding, but only support US-ASCII and=

> 8859-1: https://github.com/php/php-src/blob/master/ext/xml/xml.c#L283
>=20
> If anything, they should probably have a "str_" prefix, and maybe even
> be moved into the string section of the source, exposed in such a way
> that the XML parser can still make use of them.

Thanks for looking deeper. That makes even more sense now.


--=20
Regards,
Mike


--Su4qifS5dekRWcLam8w2U3rsVKTiTcuHL--

--Ruj67OELPm732oH6iXcW1WAUm9ReQtRIN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJXutotAAoJEEgOPhSwpMfHEhIH/0/I9QiMCPkDmJw129/2bIj8
pG1t4a1XpZ/t18Vvl0wBHKLiLoh3yp0TWk2wjqXITa2cZ4roKg5SEivQOv6CSPKG
Zp8mPfkjP8xmZdlBdJFlayXaMAzbMGSMGWxer5DgSnbkMRN5l1ZCjzu3yQRSiTjQ
s47NktvLXl4XzeK5MtXhXRPeHCpbrca4SgHqacQMkR1E8O+LETt9d2vr5oUTYcpn
fQ+kk9UUxhcjmvlln3rKbV/gx8Bu8inJ03YjzBoZYmZ5Bm8N9w38mhx1bob8jRKO
focgQAhBv+bK7PD3naxwUiPP2b1i3SBoyOx1w3iGpGj8wY2/92Dvqn33MscNwbs=
=g2Rl
-----END PGP SIGNATURE-----

--Ruj67OELPm732oH6iXcW1WAUm9ReQtRIN--