Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50121 invoked from network); 21 Jun 2011 15:13:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2011 15:13:25 -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 74.125.83.42 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: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:64176] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/A5-12449-215B00E4 for ; Tue, 21 Jun 2011 11:13:22 -0400 Received: by gwb17 with SMTP id 17so1270309gwb.29 for ; Tue, 21 Jun 2011 08:13:20 -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=Yw30YXYjWM2Ns88w+qGpbS9B2mgXXu+LMZrh8ksi7tg=; b=OHwB5ANGe5gg07DYXAfptaPh9cHXiH79gABeXKp9Q4dxgOcFO9LQeIChpdRaNMLmEi ZrAPYuK1xNKtiyx3XMmZUfr8PI/7KBeB2w1XVWkBAfA5vAYEdAhlln7BPqZkDRrY9F/a oJsqWJUeaTl2BjMv6BfCgndvLKxP38J2bLON8= 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=QFFIUD6TuL+XasnnNOAqCx6jpxcNjKcdIACzAjdyCy2rqgEXRpG9sno9Dm5soQyM3Y AKqy5s50gC6CZlz+m1ybt50oZbDz4+TGr3y84nz8kFNUCYfKHHx7fJpERUV39ptAg0c/ +RjwMUKqwfbmTBWHskQvSdsnVLZKrRA+6UkbI= MIME-Version: 1.0 Received: by 10.236.143.101 with SMTP id k65mr4902297yhj.164.1308669199655; Tue, 21 Jun 2011 08:13:19 -0700 (PDT) Received: by 10.147.170.17 with HTTP; Tue, 21 Jun 2011 08:13:19 -0700 (PDT) In-Reply-To: References: <4DFF7A12.8060808@sugarcrm.com> <4E00818C.7040201@lsces.co.uk> <4E008EA3.4000403@lsces.co.uk> Date: Tue, 21 Jun 2011 17:13:19 +0200 Message-ID: To: John Crenshaw Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] foreach() for strings From: pierre.php@gmail.com (Pierre Joye) On Tue, Jun 21, 2011 at 4:38 PM, John Crenshaw wrote: > This mindset is fundamentally broken. You can call it a byte array all you want, but the truth is that 99.999% of the time, when a developer is using a string they need it for characters, not for bytes Let me rephrase: For backward compatibility reasons we cannot change this behavior. Any serious text processing should be done using intl, mbstring, transliterator (pecl) or other similar solutions. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org