diff options
author | Xinchen Hui <laruence@php.net> | 2015-01-29 12:50:56 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-01-29 12:50:56 +0800 |
commit | d96eb4b0a8bbc69d6be4fcaf31d02d718f21a617 (patch) | |
tree | c9dd0cf5f9d41bff56f3549813147452b83cdc55 | |
parent | 18c647cce27c502e6a81e97058300537b984e04f (diff) | |
download | php-git-d96eb4b0a8bbc69d6be4fcaf31d02d718f21a617.tar.gz |
reorder the branches
-rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 3796b68398..0f81945481 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1439,12 +1439,12 @@ PHPAPI const ps_serializer *_php_find_ps_serializer(char *name) /* {{{ */ /* }}} */ static void ppid2sid(zval *ppid) { - if (Z_TYPE_P(ppid) != IS_STRING) { - PS(id) = NULL; - PS(send_cookie) = 1; - } else { + if (Z_TYPE_P(ppid) == IS_STRING) { PS(id) = zend_string_init(Z_STRVAL_P(ppid), Z_STRLEN_P(ppid), 0); PS(send_cookie) = 0; + } else { + PS(id) = NULL; + PS(send_cookie) = 1; } } |