diff options
| author | Zeev Suraski <zeev@php.net> | 2000-01-17 22:41:59 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-01-17 22:41:59 +0000 |
| commit | df138c2e2f56246607171fcef85dcf4ab64da9b5 (patch) | |
| tree | 8d103251f094570acbec84764771d75c6e240a2f /ext/session | |
| parent | bbe2172c38b8d34ae9b06b1a2856754baa05b728 (diff) | |
| download | php-git-df138c2e2f56246607171fcef85dcf4ab64da9b5.tar.gz | |
- MS-SQL fix
- Fix a crash bug in session_register()
Diffstat (limited to 'ext/session')
| -rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 4608e8e49e..a4e99225ca 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -955,10 +955,12 @@ static void php_register_var(zval** entry PSLS_DC PLS_DC) php_register_var(value PSLS_CC PLS_CC); zend_hash_move_forward((*entry)->value.ht); } - } else if (!PG(track_vars) || strcmp((*entry)->value.str.val, "HTTP_STATE_VARS") != 0) { + } else { convert_to_string_ex(entry); - - PS_ADD_VARL((*entry)->value.str.val, (*entry)->value.str.len); + + if (!PG(track_vars) || strcmp((*entry)->value.str.val, "HTTP_STATE_VARS") != 0) { + PS_ADD_VARL((*entry)->value.str.val, (*entry)->value.str.len); + } } } /* }}} */ |
