Re: cvs: php-src /ext/standard http.c
| From: | Andrei Zmievski | Date: | Sun, 23 Jul 2006 07:32:22 +0000 |
| Subject: | Re: cvs: php-src /ext/standard http.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-39462@lists.php.net to get a copy of this message | ||
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') {