1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/mbstring: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL (#21276)

This commit is contained in:
Arshid
2026-02-27 02:56:11 +05:30
committed by GitHub
parent 7bc80c0932
commit f46bc8e3a7

View File

@@ -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);
}
/* }}} */