Skip to content

Commit 8ad79e1

Browse files
authored
ext/standard: Use RETURN_LONG instead of RETVAL_LONG + return (#21719)
1 parent 555e652 commit 8ad79e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/standard/type.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ PHP_FUNCTION(intval)
151151
ZEND_PARSE_PARAMETERS_END();
152152

153153
if (Z_TYPE_P(num) != IS_STRING || base == 10) {
154-
RETVAL_LONG(zval_get_long(num));
155-
return;
154+
RETURN_LONG(zval_get_long(num));
156155
}
157156

158157

0 commit comments

Comments
 (0)