This is not entirely correct. With IS_UNICODE you need to compare against a 16-bit 0, not a '\0' which is an 8-bit one.

-Andrei

P.S. Why am I writing this after getting back from a bar?

On Jul 22, 2006, at 11:05 PM, Marcus Boerger wrote:

+ if ((key_type == HASH_KEY_IS_STRING || key_type == HASH_KEY_IS_UNICODE)
+               && key_len && key.s[key_len-1] == '\0') {

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to