Hmm, I was thinking we might have some binary write function which would do
that automagically. I think it'd be worth it.
> -Original Message-
> From: Andrei Zmievski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 22, 2006 11:38 PM
> To: Andi Gutmans
> Cc: 'Sara Golemon'; '"Ron Korving
The only way they can get at the internal UTF-16 representation is
via unicode_encode($uni, 'UTF-16') which will return a binary UTF-16
string. In that case, strlen() will work just as well.
-Andrei
On Jun 22, 2006, at 11:30 PM, Andi Gutmans wrote:
I don't quite agree. I think there's a go
I don't quite agree. I think there's a good chance people will want to save
Unicode strings in a binary format for performance reasons. Save it the way
it looks in memory, and put it back... Why convert to UTF-8 or any other
encoding if it's just about storage?
Andi
> -Original Message-
Fine with me.
> -Original Message-
> From: Andrei Zmievski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 22, 2006 11:08 PM
> To: Andi Gutmans
> Cc: 'Johannes Schlueter'; internals@lists.php.net; 'Ron Korving'
> Subject: Re: [PHP-DEV] Re: strlen() under unicode.semantics
>
> How about
How about str_storage_size()? It is explicit enough that people will
be wary of using it.
-Andrei
On Jun 22, 2006, at 10:56 PM, Andi Gutmans wrote:
Oops, senile me :)
How about str_size()?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/un
Oops, senile me :)
How about str_size()?
Andi
> -Original Message-
> From: Johannes Schlueter [mailto:[EMAIL PROTECTED]
> 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() unde
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:[EMAIL PROTECTED]
Maybe sizeof() should not be an alias for strlen() when operating on
Unicode...?
Andi
> -Original Message-
> From: Andrei Zmievski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 22, 2006 3:14 PM
> To: Ron Korving
> Cc: internals@lists.php.net
> Subject: Re: [PHP-DEV] Re: strlen() unde
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
i
Thanks for the link!
-Andrei
On Jun 22, 2006, at 5:11 PM, Jared Williams wrote:
https://bugzilla.mozilla.org/show_bug.cgi?id=18643
Maybe of interest, it's the kludge for determining form charsets,
after the
charset in the Content-Type header broke too much.
--
PHP Internals - PHP Runti
> -Original Message-
> From: Andrei Zmievski [mailto:[EMAIL PROTECTED]
> Sent: 22 June 2006 22:46
> To: PHP Internals
> Cc: PHP I18N
> Subject: [PHP-DEV] RFC: Error handling in HTTP input decoding
>
> I'd like to solicit opinions on how we should treat
> conversion failures
> during
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
I'd like to solicit opinions on how we should treat conversion failures
during HTTP input decoding. There are two issues at hand: fallback
mechanism and application-driven decoding in case of failure. Let's
look at the proposal for the latter one first.
If the decoding of HTTP input fails (and
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
impl
Committed, thanks a lot.
On 16.06.2006 23:24, Steph Fox wrote:
It doesn't affect anything, just makes it look prettier :)
- Steph
Index: Zend/zend_modules.h
==
PHP/SDO project maintenance.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
16 matches
Mail list logo