RE: [PHP-DEV] Re: strlen() under unicode.semantics
| From: | Andi Gutmans | Date: | Fri, 23 Jun 2006 05:56:14 +0000 |
| Subject: | RE: [PHP-DEV] Re: strlen() under unicode.semantics | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24187@lists.php.net to get a copy of this message | ||
Oops, senile me :)
How about str_size()?
Andi
> -----Original Message-----
> From: Johannes Schlueter [mailto:johannes@schlueters.de]
> Sent: Thursday, June 22, 2006 10:45 PM
> To: internals@lists.php.net
> Cc: Andi Gutmans; 'Andrei Zmievski'; 'Ron Korving'
> Subject: Re: [PHP-DEV] Re: strlen() under unicode.semantics
>
> 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
>