From e3713d7b88360658b189597bd385f3f822f2c02f Mon Sep 17 00:00:00 2001 From: arshidkv12 Date: Sat, 11 Apr 2026 08:08:23 +0530 Subject: [PATCH] ext/standard: Use RETURN_LONG instead of RETVAL_LONG + return --- ext/standard/type.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/standard/type.c b/ext/standard/type.c index e23e4620da23b..8256b3274ea22 100644 --- a/ext/standard/type.c +++ b/ext/standard/type.c @@ -151,8 +151,7 @@ PHP_FUNCTION(intval) ZEND_PARSE_PARAMETERS_END(); if (Z_TYPE_P(num) != IS_STRING || base == 10) { - RETVAL_LONG(zval_get_long(num)); - return; + RETURN_LONG(zval_get_long(num)); }