Skip to content

Commit d7d89bc

Browse files
author
foobar
committed
ws
1 parent c902ad7 commit d7d89bc

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

ext/iconv/iconv.c

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
/* {{{ iconv_functions[]
5252
*/
5353
function_entry iconv_functions[] = {
54-
PHP_FE(iconv, NULL)
55-
PHP_FE(ob_iconv_handler, NULL)
56-
PHP_FE(iconv_get_encoding, NULL)
57-
PHP_FE(iconv_set_encoding, NULL)
54+
PHP_FE(iconv, NULL)
55+
PHP_FE(ob_iconv_handler, NULL)
56+
PHP_FE(iconv_get_encoding, NULL)
57+
PHP_FE(iconv_set_encoding, NULL)
5858
{NULL, NULL, NULL}
5959
};
6060
/* }}} */
@@ -90,8 +90,7 @@ PHP_INI_BEGIN()
9090
PHP_INI_END()
9191
/* }}} */
9292

93-
static void
94-
php_iconv_init_globals(zend_iconv_globals *iconv_globals)
93+
static void php_iconv_init_globals(zend_iconv_globals *iconv_globals)
9594
{
9695
iconv_globals->input_encoding = NULL;
9796
iconv_globals->output_encoding = NULL;
@@ -164,16 +163,16 @@ int php_iconv_string(char *in_p, char **out, char *in_charset, char *out_charset
164163
Returns str converted to the out_charset character set */
165164
PHP_FUNCTION(iconv)
166165
{
167-
zval **in_charset, **out_charset, **in_buffer;
166+
zval **in_charset, **out_charset, **in_buffer;
168167
char *out_buffer;
169168

170-
if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &in_charset, &out_charset, &in_buffer) == FAILURE) {
171-
WRONG_PARAM_COUNT;
172-
}
169+
if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &in_charset, &out_charset, &in_buffer) == FAILURE) {
170+
WRONG_PARAM_COUNT;
171+
}
173172

174-
convert_to_string_ex(in_charset);
175-
convert_to_string_ex(out_charset);
176-
convert_to_string_ex(in_buffer);
173+
convert_to_string_ex(in_charset);
174+
convert_to_string_ex(out_charset);
175+
convert_to_string_ex(in_buffer);
177176

178177
if (php_iconv_string(Z_STRVAL_PP(in_buffer), &out_buffer, Z_STRVAL_PP(in_charset), Z_STRVAL_PP(out_charset)) == SUCCESS) {
179178
RETVAL_STRING(out_buffer, 0);

0 commit comments

Comments
 (0)