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

ext/iconv: Use RETURN_BOOL() instead of if/else

This commit is contained in:
Gina Peter Banyard
2025-04-11 23:36:36 +01:00
parent e1686aabf7
commit 4eb8839037

View File

@@ -2255,11 +2255,7 @@ PHP_FUNCTION(iconv_set_encoding)
retval = zend_alter_ini_entry(name, charset, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
zend_string_release_ex(name, 0);
if (retval == SUCCESS) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
RETURN_BOOL(retval == SUCCESS);
}
/* }}} */