Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26335 invoked from network); 21 Jun 2011 11:42:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2011 11:42:50 -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; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:54081] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/B2-12449-9B3800E4 for ; Tue, 21 Jun 2011 07:42:49 -0400 Received: by yxk8 with SMTP id 8so3005817yxk.29 for ; Tue, 21 Jun 2011 04:42:46 -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 :content-transfer-encoding; bh=4UgF3XyRPGxpG1r1t41ab6/QYG34rPKozs0sX7YQj9Q=; b=eGGvP4B/oyALVwptw8gJkKBxxgEFUap1bQU/MGl96XYlHyanY6qsFfuc4iCPVvWz94 Ku8HFQZ01AHv/6zwdEIgdKPhT7W5o/NvteFt2ElsuEIlnqldZ7Of4um4BR7UCgK70lKJ mOrboLjE6OGWmymdbp9aMuX5K7GTZdBppIcYQ= 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:content-transfer-encoding; b=XdplnPXoHWPQC9wH4o7lRp2Fl0AJy+Ml1I9kHNA7cr5/wNMOXq49CmYWt8siuRY3U3 VTxrtolxeserRolCaNITupGu9OfY/ukgcid9JpmqehKoQElKeSgrvZXsnGzS6TZ6Zl4Z Rl/BOkMGK82AvBj0CnKFcUp8CRMY64x/627zI= MIME-Version: 1.0 Received: by 10.147.1.11 with SMTP id d11mr3274019yai.14.1308656565343; Tue, 21 Jun 2011 04:42:45 -0700 (PDT) Received: by 10.147.170.17 with HTTP; Tue, 21 Jun 2011 04:42:45 -0700 (PDT) In-Reply-To: <4E00818C.7040201@lsces.co.uk> References: <4DFF7A12.8060808@sugarcrm.com> <4E00818C.7040201@lsces.co.uk> Date: Tue, 21 Jun 2011 13:42:45 +0200 Message-ID: To: Lester Caine Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] foreach() for strings From: pierre.php@gmail.com (Pierre Joye) On Tue, Jun 21, 2011 at 1:33 PM, Lester Caine wrote: > Pierre Joye wrote: >>> >>> It depended on ICU there, and I would be against making a core thing in >>> > =A0PHP 5.x depend on ICU. >> >> It can and should be done as part of intl, actually. >> >> But that's somehow unrelated to the proposal here, as it is about >> byte, not characters :) > > I believe this may be where some of the new niggles may be coming from? W= ith > browsers returning unicode, it may be that some of the 'extra' characters > are being returned as multibyte rather than as single bytes? Such as the > problem reported on the general list currently. How do we ensure that we = are > dealing with single byte character strings nowadays? As it has been stated numerous times in this thread and other, we do not do anything with multi bytes systems, unicode, etc. mbstring and intl do, but php's string as of now is all about bytes, array of bytes if I may describe them this way. And we can't change this behavior. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org