summaryrefslogtreecommitdiff
path: root/ext/session/mod_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/mod_user.c')
-rw-r--r--ext/session/mod_user.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c
index 9e09dff83b..40bb88813b 100644
--- a/ext/session/mod_user.c
+++ b/ext/session/mod_user.c
@@ -26,9 +26,9 @@ ps_module ps_mod_user = {
PS_MOD_SID(user)
};
-#define SESS_ZVAL_LONG(val, a) \
+#define SESS_ZVAL_INT(val, a) \
{ \
- ZVAL_LONG(a, val); \
+ ZVAL_INT(a, val); \
}
#define SESS_ZVAL_STRING(vl, a) \
@@ -73,10 +73,10 @@ static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval TSRML
ret = SUCCESS; \
} else if (Z_TYPE(retval) == IS_FALSE) { \
ret = FAILURE; \
- } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == -1)) { \
+ } else if ((Z_TYPE(retval) == IS_INT) && (Z_IVAL(retval) == -1)) { \
/* BC for clever users - Deprecate me */ \
ret = FAILURE; \
- } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == 0)) { \
+ } else if ((Z_TYPE(retval) == IS_INT) && (Z_IVAL(retval) == 0)) { \
/* BC for clever users - Deprecate me */ \
ret = SUCCESS; \
} else { \
@@ -189,7 +189,7 @@ PS_GC_FUNC(user)
zval args[1];
STDVARS;
- SESS_ZVAL_LONG(maxlifetime, &args[0]);
+ SESS_ZVAL_INT(maxlifetime, &args[0]);
ps_call_handler(&PSF(gc), 1, args, &retval TSRMLS_CC);