]> granicus.if.org Git - php/commitdiff
fix #40998 (long session array keys are truncated)
authorAntony Dovgal <tony2001@php.net>
Wed, 4 Apr 2007 19:46:42 +0000 (19:46 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 4 Apr 2007 19:46:42 +0000 (19:46 +0000)
ext/session/session.c

index 1c2ed34e30177a3dbd0906c0d332be5b36e7afc6..18357fec61fe019d9e64e071e5ef20d7219eb4c6 100644 (file)
@@ -753,7 +753,7 @@ PS_SERIALIZER_ENCODE_FUNC(php)
                                smart_str_free(&buf);                           
                                return FAILURE;
                        }
-                       smart_str_appendl(&buf, key.s, (unsigned char) key_length);
+                       smart_str_appendl(&buf, key.s, key_length);
                } else {
                        /* HASH_KEY_IS_UNICODE */
                        char *str = NULL;