From f46bc8e3a7d4449713600115a96ee634327d4092 Mon Sep 17 00:00:00 2001 From: Arshid Date: Fri, 27 Feb 2026 02:56:11 +0530 Subject: [PATCH] ext/mbstring: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL (#21276) --- ext/mbstring/php_mbregex.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 26eeb78a3cbfc..5831ce2a5a699 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1303,11 +1303,7 @@ PHP_FUNCTION(mb_ereg_match) /* match */ err = onig_match_with_param(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, NULL, 0, mp); onig_free_match_param(mp); - if (err >= 0) { - RETVAL_TRUE; - } else { - RETVAL_FALSE; - } + RETURN_BOOL(err >= 0); } /* }}} */