RE: [PHP-DEV] Re: strlen() under unicode.semantics
| From: | Andi Gutmans | Date: | Fri, 23 Jun 2006 05:43:22 +0000 |
| Subject: | RE: [PHP-DEV] Re: strlen() under unicode.semantics | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24185@lists.php.net to get a copy of this message | ||
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
>