com php-src: Use SUCCESS/FAILURE: ext/session/session.c

From: Date: Mon, 18 Jan 2016 04:33:47 +0000
Subject: com php-src: Use SUCCESS/FAILURE: ext/session/session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90678@lists.php.net to get a copy of this message
Commit: ee1dd4949a77f95de4063f8feb2c10f67edcc341 Author: Yasuo Ohgaki <yohgaki@php.net> Mon, 18 Jan 2016 13:27:52 +0900 Parents: f9c595f3c07c4a8671fe751d97cd58cc4c2d337c Branches: PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ee1dd4949a77f95de4063f8feb2c10f67edcc341 Log: Use SUCCESS/FAILURE Changed paths: M ext/session/session.c Diff: diff --git a/ext/session/session.c b/ext/session/session.c index cbcd20d..c3ea950 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1119,7 +1119,7 @@ static ps_serializer ps_serializers[MAX_SERIALIZERS + 1] = { PHPAPI int php_session_register_serializer(const char *name, int (*encode)(PS_SERIALIZER_ENCODE_ARGS), int (*decode)(PS_SERIALIZER_DECODE_ARGS)) /* {{{ */ { - int ret = -1; + int ret = FAILURE; int i; for (i = 0; i < MAX_SERIALIZERS; i++) { @@ -1128,7 +1128,7 @@ PHPAPI int php_session_register_serializer(const char *name, int (*encode)(PS_SE ps_serializers[i].encode = encode; ps_serializers[i].decode = decode; ps_serializers[i + 1].name = NULL; - ret = 0; + ret = SUCCESS; break; } } @@ -1150,13 +1150,13 @@ static ps_module *ps_modules[MAX_MODULES + 1] = { PHPAPI int php_session_register_module(ps_module *ptr) /* {{{ */ { - int ret = -1; + int ret = FAILURE; int i; for (i = 0; i < MAX_MODULES; i++) { if (!ps_modules[i]) { ps_modules[i] = ptr; - ret = 0; + ret = SUCCESS; break; } }

« previous php.cvs (#90678) next »