diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-04-04 19:52:19 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-04-04 19:52:19 +0000 |
| commit | 39f9184fa6e8ffa949bb1e1d85310dcc0096be0f (patch) | |
| tree | 46ff293b3771dedd87e7fa87c268fa2776626cd9 /ext/session | |
| parent | febad95f3f585784c6564169f5e94c1ca3d9dee8 (diff) | |
| download | php-git-39f9184fa6e8ffa949bb1e1d85310dcc0096be0f.tar.gz | |
MFH: fix #40998 (long session array keys are truncated)
Diffstat (limited to 'ext/session')
| -rw-r--r-- | ext/session/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 72606a22d9..cdb23ff2ef 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -523,7 +523,7 @@ PS_SERIALIZER_ENCODE_FUNC(php) PHP_VAR_SERIALIZE_INIT(var_hash); PS_ENCODE_LOOP( - smart_str_appendl(&buf, key, (unsigned char) key_length); + smart_str_appendl(&buf, key, key_length); if (memchr(key, PS_DELIMITER, key_length)) { PHP_VAR_SERIALIZE_DESTROY(var_hash); smart_str_free(&buf); |
