diff options
-rw-r--r-- | ext/session/mod_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index 1f03c86114..981e920bc1 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -189,13 +189,14 @@ PS_GC_FUNC(user) ps_call_handler(&PSF(gc), 1, args, &retval); if (Z_TYPE(retval) == IS_LONG) { - convert_to_long(&retval); return Z_LVAL(retval); } + /* This is for older API compatibility */ if (Z_TYPE(retval) == IS_TRUE) { return 1; } + /* Anything else is some kind of error */ return -1; // Error } |