Skip to content

Commit 2708c5a

Browse files
committed
ext/mbstring: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL
1 parent 93bbb46 commit 2708c5a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/mbstring/php_mbregex.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,7 @@ PHP_FUNCTION(mb_ereg_match)
13031303
/* match */
13041304
err = onig_match_with_param(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, NULL, 0, mp);
13051305
onig_free_match_param(mp);
1306-
if (err >= 0) {
1307-
RETVAL_TRUE;
1308-
} else {
1309-
RETVAL_FALSE;
1310-
}
1306+
RETVAL_BOOL(err >= 0);
13111307
}
13121308
/* }}} */
13131309

0 commit comments

Comments
 (0)