RE: [PHP-DEV] foreach() for strings

From: Date: Tue, 21 Jun 2011 16:53:13 +0000
Subject: RE: [PHP-DEV] foreach() for strings
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-53491@lists.php.net to get a copy of this message
> From: Pierre Joye [mailto:pierre.php@gmail.com] > > On Tue, Jun 21, 2011 at 4:38 PM, John Crenshaw <johncrenshaw@priacta.com> 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 Right, I totally agree. We can't fix the multibyte string issue today; I'm just saying that we *can* (and should) avoid making it much worse. John Crenshaw Priacta, Inc.

« previous php.internals (#53491) next »