Home
last modified time | relevance | path

Searched refs:iconv (Results 1 – 25 of 131) sorted by relevance

123456

/PHP-7.2/ext/iconv/
H A Dconfig.m45 PHP_ARG_WITH(iconv, for iconv support,
6 [ --without-iconv[=DIR] Exclude iconv support], yes)
40 AC_MSG_CHECKING([if iconv is glibc's])
96 echo > ext/iconv/php_have_bsd_iconv.h
98 echo > ext/iconv/php_have_libiconv.h
99 echo > ext/iconv/php_have_ibm_iconv.h
112 PHP_DEFINE([PHP_ICONV_IMPL],[\"BSD iconv\"],[ext/iconv])
113 AC_DEFINE([PHP_ICONV_IMPL],["BSD iconv"],[Which iconv implementation to use])
125 PHP_DEFINE([PHP_ICONV_IMPL],[\"IBM iconv\"],[ext/iconv])
126 AC_DEFINE([PHP_ICONV_IMPL],["IBM iconv"],[Which iconv implementation to use])
[all …]
H A Dconfig.w324 ARG_WITH("iconv", "iconv support", "yes");
7 …if ((CHECK_LIB("libiconv_a.lib", "iconv", PHP_ICONV) || CHECK_LIB("libiconv.lib", "iconv", PHP_ICO…
8 CHECK_LIB("iconv_a.lib", "iconv", PHP_ICONV) || CHECK_LIB("iconv.lib", "iconv", PHP_ICONV)) &&
9 CHECK_HEADER_ADD_INCLUDE("iconv.h", "CFLAGS_ICONV", PHP_ICONV)) {
11 EXTENSION("iconv", "iconv.c", PHP_ICONV_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
13 AC_DEFINE("HAVE_ICONV", 1, "Define if iconv extension is enabled");
15 AC_DEFINE("ICONV_ALIASED_LIBICONV", 1, "The iconv function is called iconv() in libiconv");
17 AC_DEFINE("ICONV_SUPPORTS_ERRNO", 1, "Whether iconv supports errno or not");
20 ADD_DEF_FILE("ext\\iconv\\php_iconv.def");
22 PHP_INSTALL_HEADERS("", "ext/iconv");
[all …]
/PHP-7.2/ext/iconv/tests/
H A Diconv_default_charset.phpt5 extension_loaded('iconv') or die('skip');
14 iconv.internal_encoding=
15 iconv.input_encoding=
16 iconv.output_encoding=
26 ini_get('iconv.internal_encoding'),
27 ini_get('iconv.input_encoding'),
28 ini_get('iconv.output_encoding'));
39 ini_get('iconv.input_encoding'),
40 ini_get('iconv.output_encoding'));
49 ini_set('iconv.input_encoding'),
[all …]
H A Diconv_ini_encoding.phpt11 iconv.internal_encoding=ISO-8859-1
12 iconv.http_input=ISO-8859-1
13 iconv.http_output=ISO-8859-1
22 var_dump(ini_get('iconv.internal_encoding'));
23 var_dump(ini_get('iconv.input_encoding'));
24 var_dump(ini_get('iconv.output_encoding'));
32 var_dump(ini_set('iconv.input_encoding', 'UTF-8'));
33 var_dump(ini_set('iconv.output_encoding', 'UTF-8'));
41 var_dump(ini_get('iconv.internal_encoding'));
42 var_dump(ini_get('iconv.input_encoding'));
[all …]
H A Dbug48147.phpt2 Bug #48147 (iconv with //IGNORE cuts the string)
4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
8 var_dump(iconv("UTF-8", "UTF-8", $text));
9 var_dump(urlencode(iconv("UTF-8", "UTF-8//IGNORE", $text)));
11 var_dump(urlencode(iconv("UTF-8", "UTF-8//IGNORE", "\xC3")));
13 var_dump(urlencode(iconv("UTF-8", "UTF-8//IGNORE", "\xC3\xC3\xC3\xB8aa")));
15 var_dump(urlencode(iconv("UTF-8", "UTF-8//IGNORE", "aa\xC3\xC3\xC3")));
18 Notice: iconv(): Detected an illegal character in input string in %s on line %d
22 Notice: iconv(): Detected an incomplete multibyte character in input string in %s on line %d
26 Notice: iconv(): Detected an incomplete multibyte character in input string in %s on line %d
H A Diconv_basic.phpt2 Test iconv() function : basic functionality
5 extension_loaded('iconv') or die('skip');
6 function_exists('iconv') or die("skip iconv() is not available in this build");
12 * Source code: ext/iconv/iconv.c
16 * Test basic functionality of iconv()
19 echo "*** Testing iconv() : basic functionality ***\n";
30 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string )));
31 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string)));
38 var_dump(bin2hex(iconv('UTF-8', 'SJIS', $utf8_string)));
44 var_dump(bin2hex(iconv('SJIS', 'UTF-8', $sjis_string)));
[all …]
H A Diconv-charset-length-cve-2007-4840.phpt2 iconv() charset parameter length checks (CVE-2007-4840)
4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
8 var_dump(iconv($a, "b", "test"));
9 var_dump(iconv("x", $a, "test"));
12 Warning: iconv(): Charset parameter exceeds the maximum allowed length of %d characters in %s on li…
15 Warning: iconv(): Charset parameter exceeds the maximum allowed length of %d characters in %s on li…
H A Diconv004.phpt4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
6 iconv.input_encoding = ISO-8859-1
7 iconv.internal_encoding = ISO-8859-1
8 iconv.output_encoding = ISO-8859-1
H A Dbug76249.phpt2 Bug #76249 (stream filter convert.iconv leads to infinite loop on invalid sequence)
4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
10 if (false === @stream_filter_append($fh, 'convert.iconv.ucs-2/utf8//IGNORE', STREAM_FILTER_READ, []…
11 stream_filter_append($fh, 'convert.iconv.ucs-2/utf-8//IGNORE', STREAM_FILTER_READ, []);
18 Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf%A8//IGNORE"): invalid multibyte …
H A Diconv003.phpt2 iconv() test 3
4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
8 if (@iconv('blah', 'blah', 'blah') != '') {
H A Diconv_stream_filter_delimiter.phpt2 iconv stream filter
4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
6 iconv.internal_charset=iso-8859-1
16 stream_filter_append($fp, 'convert.iconv.ISO-2022-JP/EUC-JP');
23 stream_filter_append($fp, 'convert.iconv.ISO-2022-JP.EUC-JP');
30 stream_filter_append($fp, 'convert.iconv.ISO-2022-JP\0EUC-JP');
47 Warning: stream_filter_append(): unable to create or locate filter "convert.iconv.ISO-2022-JP\0EUC-…
H A Diconv001.phpt2 iconv() test 1
10 echo "iconv extension is available\n";
13 var_dump("UTF-8: ".iconv( "ISO-8859-1", "UTF-8", $test ) );
16 iconv extension is available
H A Diconv_stream_filter.phpt2 iconv stream filter
4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
6 iconv.internal_charset=iso-8859-1
16 stream_filter_append($fp, 'convert.iconv.ISO-2022-JP/EUC-JP');
24 stream_filter_append($fp, 'convert.iconv.ISO-2022-JP/EUC-JP');
H A Diconv_substr_basic.phpt5 extension_loaded('iconv') or die('skip');
9 iconv.input_encoding=ISO-8859-1
10 iconv.internal_encoding=ISO-8859-1
11 iconv.output_encoding=ISO-8859-1
16 * Source code: ext/iconv/iconv.c
H A Diconv002.phpt2 iconv() test 2 (UCS4BE to ASCII)
6 if (@iconv("ascii","UCS-4LE", "abcd") == '') {
21 $s = unpack("V*", iconv("ascii","UCS-4LE", "abcd"));
25 $q = iconv("UCS-4BE", "ascii", $s);
H A Diconv_basic_001-win32.phpt2 Test the basics to function iconv.
6 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
14 $string_out = iconv($in_charset, $out_charset, $string_to_translate);
H A Dob_iconv_handler-charset-length-cve-2007-4840.phpt4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
9 ini_set("iconv.output_encoding", str_repeat("a", 9000000));
H A Diconv_basic_001.phpt2 Test the basics to function iconv.
6 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
16 $string_out = iconv($in_charset, $out_charset, $string_to_translate);
H A Dbug78069.phpt2 Bug #78069 (Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow)
5 if (!extension_loaded('iconv')) die('skip ext/iconv required');
H A Dbug52211.phpt2 Bug #52211 (iconv() returns part of string on error)
11 $str_iconv = iconv('CP850', 'ISO-8859-1', $str );
16 Notice: iconv(): Detected an illegal character in input string in %s on line %d
H A Diconv_encoding_basic.phpt5 extension_loaded('iconv') or die('skip');
10 iconv.input_encoding=ISO-8859-1
11 iconv.internal_encoding=ISO-8859-1
12 iconv.output_encoding=ISO-8859-1
19 * Source code: ext/iconv/iconv.c
H A Diconv_substr.phpt4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
6 iconv.internal_charset=ISO-8859-1
40 var_dump(iconv("ISO-2022-JP", "EUC-JP", iconv_substr(iconv("EUC-JP", "ISO-2022-JP", "����ˤ��� ISO-2…
H A Dskipif.inc2 if (!extension_loaded("iconv")) {
3 die("skip iconv extension not available\n");
/PHP-7.2/ext/intl/tests/
H A Dbug74230.phpt2 Bug #74230 iconv fails to fail on surrogates
4 <?php if(!extension_loaded('iconv')) print 'skip'; ?>
12 @\iconv('UTF-8', 'UTF-8', $high) === false,
13 @\iconv('UTF-8', 'UTF-8', $low) === false,
14 @\iconv('UTF-8', 'UTF-8', $pair) === false
/PHP-7.2/ext/standard/tests/file/
H A Dbug43008.phpt5 if (!extension_loaded("iconv")) die("skip iconv extension not available");
13 . urlencode("convert.iconv.ISO-8859-15/UTF-8")
16 . '|' . urlencode("convert.iconv.UTF-8/ISO-8859-15")

Completed in 36 milliseconds

123456