mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
ext/session: remove the redundant convert_to_long
This commit is contained in:
parent
8bb5582751
commit
a59881fa04
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user