com php-src: reorder the branches: ext/session/session.c

From: Date: Thu, 29 Jan 2015 04:50:56 +0000
Subject: com php-src: reorder the branches: ext/session/session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84441@lists.php.net to get a copy of this message
Commit: d96eb4b0a8bbc69d6be4fcaf31d02d718f21a617 Author: Xinchen Hui <laruence@php.net> Thu, 29 Jan 2015 12:50:56 +0800 Parents: 18c647cce27c502e6a81e97058300537b984e04f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d96eb4b0a8bbc69d6be4fcaf31d02d718f21a617 Log: reorder the branches Changed paths: M ext/session/session.c Diff: diff --git a/ext/session/session.c b/ext/session/session.c index 3796b68..0f81945 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; } }

« previous php.cvs (#84441) next »