RE: [PHP-DEV] Algorithm Optimizations - string search

From: Date: Wed, 11 Jun 2008 12:32:09 +0000
Subject: RE: [PHP-DEV] Algorithm Optimizations - string search
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-38163@lists.php.net to get a copy of this message
Hi, On Wed, 2008-06-11 at 01:01 -0700, Texin, Tex wrote: > When I looked at the code, I assumed that it wasn't intended for international use > I'll have to go back and look to give you details, but it doesn't work for > international use or unicode. > It would be ok for 8859-1. That's the default case in PHP < 6, in current PHP versions all string operations use on "binary" strings, so all references to offset work on byte not character base. That's one of the main reasons for PHP 6. johannes

« previous php.internals (#38163) next »