mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
WS fix
This commit is contained in:
@@ -3101,20 +3101,20 @@ PHP_FUNCTION(ob_iconv_handler)
|
||||
*/
|
||||
PHP_FUNCTION(iconv_set_encoding)
|
||||
{
|
||||
zval **int_charset, **out_charset;
|
||||
zval **int_charset, **out_charset;
|
||||
BLS_FETCH();
|
||||
|
||||
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &int_charset, &out_charset) == FAILURE) {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &int_charset, &out_charset) == FAILURE) {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
|
||||
convert_to_string_ex(int_charset);
|
||||
convert_to_string_ex(out_charset);
|
||||
convert_to_string_ex(int_charset);
|
||||
convert_to_string_ex(out_charset);
|
||||
|
||||
if (BG(iconv_internal_encoding)) {
|
||||
free(BG(iconv_internal_encoding));
|
||||
}
|
||||
BG(iconv_internal_encoding) = estrndup(Z_STRVAL_PP(int_charset),Z_STRLEN_PP(int_charset));
|
||||
BG(iconv_internal_encoding) = estrndup(Z_STRVAL_PP(int_charset), Z_STRLEN_PP(int_charset));
|
||||
|
||||
if (BG(iconv_output_encoding)) {
|
||||
free(BG(iconv_output_encoding));
|
||||
|
||||
Reference in New Issue
Block a user