Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23676 invoked from network); 22 Jun 2011 14:49:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2011 14:49:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.173 mail-gx0-f173.google.com Received: from [209.85.161.173] ([209.85.161.173:55279] helo=mail-gx0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/31-16772-CF0020E4 for ; Wed, 22 Jun 2011 10:49:38 -0400 Received: by gxk26 with SMTP id 26so597713gxk.18 for ; Wed, 22 Jun 2011 07:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=JARHuf2QTPfvggrH6hLje0kRcd0JH53aHv+7rp/BWVI=; b=ehNsfGwCmNtvcSFzKdbFuY8adZz4SgCWCLY8FvXuY6OypjdDrXU7rOrQJTQf1TEx+n 4uuks2/Beuc+ak6FmaBqhxQB0uMPdNJJHRZJTOzsQBaXBE4vJuMXRGVqtfIDH+LeLuKr P5GpFifCPLq7ILC7PYiNCTYbbfd0hgH+zS7YY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ci1IIPqU+LiP2NkQ1yqmTtPXGF5Q99p52gE7KeHnsaNODNxCe35xTXItBag6KA2g7l Gk3ZLhfOm7zAZNrG+DhRP8fRh7lXhTmnhsdUDJlya24lW0PnC5eCn8LMzyzQ2lecxzn0 ND2FIn30PAsF5vhbvjteCUb9ONAtKfXBiTYrs= MIME-Version: 1.0 Received: by 10.150.253.2 with SMTP id a2mr965207ybi.281.1308754166460; Wed, 22 Jun 2011 07:49:26 -0700 (PDT) Received: by 10.147.99.3 with HTTP; Wed, 22 Jun 2011 07:49:26 -0700 (PDT) In-Reply-To: <4E01F771.4010609@thelounge.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> <4E01F771.4010609@thelounge.net> Date: Wed, 22 Jun 2011 16:49:26 +0200 Message-ID: To: Reindl Harald Cc: Rasmus Lerdorf , internals@lists.php.net Content-Type: multipart/alternative; boundary=000e0cd23e1030b34c04a64e132f Subject: Re: [PHP-DEV] foreach() for strings From: tyra3l@gmail.com (Ferenc Kovacs) --000e0cd23e1030b34c04a64e132f Content-Type: text/plain; charset=UTF-8 On Wed, Jun 22, 2011 at 4:08 PM, Reindl Harald wrote: > > > 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 about > >>> 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 > > > > Then please stop posting to this list. There is no excuse for this tone. > > 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 any > string function on user-input and since PHP6 seems to be quite dead > it feels there will never be a trustable solution > > you made my day. boy :) Tyrael --000e0cd23e1030b34c04a64e132f--