Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7016 invoked from network); 22 Jun 2011 14:08:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2011 14:08:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Windows 98 (1) Received: from [91.118.73.15] ([91.118.73.15:49046] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/05-12605-477F10E4 for ; Wed, 22 Jun 2011 10:08:53 -0400 Received: from srv-rhsoft.rhsoft.net (openvpn-241.thelounge.net [10.0.0.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id 2209399; Wed, 22 Jun 2011 16:08:50 +0200 (CEST) Message-ID: <4E01F771.4010609@thelounge.net> Date: Wed, 22 Jun 2011 16:08:49 +0200 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc15 Lightning/1.0b3pre Thunderbird/3.1.11 MIME-Version: 1.0 To: Rasmus Lerdorf CC: internals@lists.php.net References: <4E00818C.7040201@lsces.co.uk> <4E008EA3.4000403@lsces.co.uk> <41269.5975f3c3.1308671739.nsm@avilys.eik.lt> <4E00C370.9040803@thelounge.net> <4E00C5D0.9020302@thelounge.net> <57392.5975f3c3.1308676323.nsm@avilys.eik.lt> <4E00DA33.9040504@thelounge.net> <58008.5975f3c3.1308687593.nsm@avilys.eik.lt> <4E00FEAC.3040500@thelounge.net> <52139.5975f3c3.1308720282.nsm@avilys.eik.lt> <4E01CEA0.2090607@thelounge.net> <4E01DE36.40009@thelounge.net> <4E01F0C6.6040401@thelounge.net> <4E01F1E0.4090900@toolpark.com> <4E01F38D.9070307@thelounge.net> <4E01F4B0.9040804@lerdorf.com> <4E01F5D6.2080600@thelounge.net> <4E01F6D4.5050302@lerdorf.com> In-Reply-To: <4E01F6D4.5050302@lerdorf.com> X-Enigmail-Version: 1.1.2 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCB9B24AEE15CEEE4C2E2F74B" Subject: Re: [PHP-DEV] foreach() for strings From: h.reindl@thelounge.net (Reindl Harald) --------------enigCB9B24AEE15CEEE4C2E2F74B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 22.06.2011 16:06, schrieb Rasmus Lerdorf: > On 06/22/2011 07:01 AM, Reindl Harald wrote: >> >> >> Am 22.06.2011 15:57, schrieb Rasmus Lerdorf: >> >>> There is obviously no way to tell if "hello" is UTF-8 or ISO-8859-1. = It >>> is technically impossible since the two are identical in that range. >> >> yes and so this will not work >> >> and as long PHP has on million places troubles with UTF8 it would >> be hardly needed find real soultions as long as functions which >> are not working with UTF8 input are not throwing a fatal error >> >>> And please keep things polite. It is very rare that I warn people abo= ut >>> that here, and I will only do it once. >> >> this is my tone if somebody believes he is genius and can solve >> problems which are since years existing with a sinlge line >=20 > Then please stop posting to this list. There is no excuse for this tone= =2E > Especially since you basically implied that you wanted a str_is_ut8() > function that can detect whether "hello" is UTF8 or ISO-8859-1. That's = a > completely nonsensical request after 10 years i want solutions where it is not the road to hell using an= y string function on user-input and since PHP6 seems to be quite dead it feels there will never be a trustable solution --------------enigCB9B24AEE15CEEE4C2E2F74B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAk4B93EACgkQhmBjz394AnmsfgCfd4fsM3zkcO+r84yaEpCapnDC nsUAn33B8mByjwmrPq7rbYKpnVuEhV6v =6Odx -----END PGP SIGNATURE----- --------------enigCB9B24AEE15CEEE4C2E2F74B--