Re: Re: strlen() under unicode.semantics

From: Date: Fri, 23 Jun 2006 05:45:14 +0000
Subject: Re: Re: strlen() under unicode.semantics
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-24186@lists.php.net to get a copy of this message
Hi Andi, sizeof() is an alias of count() not strlen() ;-) johannes On Friday 23 June 2006 07:43, Andi Gutmans wrote: > Maybe sizeof() should not be an alias for strlen() when operating on > Unicode...? > > Andi > > > -----Original Message----- > > From: Andrei Zmievski [mailto:andrei@gravitonic.com] > > Sent: Thursday, June 22, 2006 3:14 PM > > To: Ron Korving > > Cc: internals@lists.php.net > > Subject: Re: [PHP-DEV] Re: strlen() under unicode.semantics > > > > It'll be there. strlen_bytes() perhaps? > > > > -Andrei > > > > On Jun 22, 2006, at 2:55 PM, Ron Korving wrote: > > > Still, it's gotta be useful to be know how many bytes it occupies. > > > Perhaps > > > for Content-length headers or something. There are plenty > > > > of low level > > > > > concepts to think of where one might need this. And even if > > > > you can't > > > > > think of any reason now, you don't wanna get hit in the > > > > face by it and > > > > > have to implement such a function for PHP 6.0.1. > > > > > > - Ron > > > > -- > > PHP Internals - PHP Runtime Development Mailing List To > > unsubscribe, visit: http://www.php.net/unsub.php

« previous php.internals (#24186) next »