cvs: php-src /ext/standard http.c
| From: | Marcus Boerger | Date: | Sun, 23 Jul 2006 06:05:23 +0000 |
| Subject: | cvs: php-src /ext/standard http.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39460@lists.php.net to get a copy of this message | ||
helly Sun Jul 23 06:05:23 2006 UTC
Modified files:
/php-src/ext/standard http.c
Log:
- Tiny piece of unicode support
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/http.c?r1=1.20&r2=1.21&diff_format=u
Index: php-src/ext/standard/http.c
diff -u php-src/ext/standard/http.c:1.20 php-src/ext/standard/http.c:1.21
--- php-src/ext/standard/http.c:1.20 Wed Mar 8 22:04:48 2006
+++ php-src/ext/standard/http.c Sun Jul 23 06:05:23 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: http.c,v 1.20 2006/03/08 22:04:48 mike Exp $ */
+/* $Id: http.c,v 1.21 2006/07/23 06:05:23 helly Exp $ */
#include "php_http.h"
#include "php_ini.h"
@@ -59,7 +59,8 @@
(key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) !=
HASH_KEY_NON_EXISTANT;
zend_hash_move_forward(ht)
) {
- if (key_type == HASH_KEY_IS_STRING && key_len && key.s[key_len-1] ==
'\0') {
+ if ((key_type == HASH_KEY_IS_STRING || key_type == HASH_KEY_IS_UNICODE)
+ && key_len && key.s[key_len-1] == '\0') {
/* We don't want that trailing NULL */
key_len -= 1;
}