Home
last modified time | relevance | path

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

12345

/PHP-8.0/ext/iconv/
H A Dconfig.w323 ARG_WITH("iconv", "iconv support", "yes");
6 …if ((CHECK_LIB("libiconv_a.lib", "iconv", PHP_ICONV) || CHECK_LIB("libiconv.lib", "iconv", PHP_ICO…
7 CHECK_LIB("iconv_a.lib", "iconv", PHP_ICONV) || CHECK_LIB("iconv.lib", "iconv", PHP_ICONV)) &&
8 CHECK_HEADER_ADD_INCLUDE("iconv.h", "CFLAGS_ICONV", PHP_ICONV)) {
10 EXTENSION("iconv", "iconv.c", PHP_ICONV_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
12 AC_DEFINE("HAVE_ICONV", 1, "Define if iconv extension is enabled");
14 AC_DEFINE("ICONV_ALIASED_LIBICONV", 1, "The iconv function is called iconv() in libiconv");
15 AC_DEFINE("PHP_ICONV_IMPL", "\"libiconv\"", "Which iconv implementation to use");
18 ADD_DEF_FILE("ext\\iconv\\php_iconv.def");
20 PHP_INSTALL_HEADERS("", "ext/iconv");
[all …]
H A Dconfig.m41 PHP_ARG_WITH([iconv],
2 [for iconv support],
3 [AS_HELP_STRING([[--without-iconv[=DIR]]],
4 [Exclude iconv support])],
21 AC_MSG_CHECKING([if iconv is glibc's])
32 #include <iconv.h>
75 AC_DEFINE([PHP_ICONV_IMPL],["BSD iconv"],[Which iconv implementation to use])
84 AC_DEFINE([PHP_ICONV_IMPL],["IBM iconv"],[Which iconv implementation to use])
90 #include <iconv.h>
117 #include <iconv.h>
[all …]
/PHP-8.0/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-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(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on l…
15 Warning: iconv(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on l…
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");
11 * Test basic functionality of iconv()
14 echo "*** Testing iconv() : basic functionality ***\n";
25 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string )));
26 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string)));
32 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string)));
33 var_dump(bin2hex(iconv('UTF-8', 'SJIS', $utf8_string)));
39 var_dump(bin2hex(iconv('SJIS', 'UTF-8', $sjis_string)));
[all …]
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, []);
17 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 Diconv001.phpt2 iconv() test 1
9 echo "iconv extension is available\n";
12 var_dump("UTF-8: ".iconv( "ISO-8859-1", "UTF-8", $test ) );
15 iconv extension is available
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 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 Diconv002.phpt2 iconv() test 2 (UCS4BE to ASCII)
6 if (@iconv("ascii","UCS-4LE", "abcd") == '') {
20 $s = unpack("V*", iconv("ascii","UCS-4LE", "abcd"));
24 $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 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 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 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 Dbug79200.phpt2 Bug #79200 (Some iconv functions cut Windows-1258)
5 if (!extension_loaded('iconv')) die('skip iconv extension not available');
H A Dskipif.inc2 if (!extension_loaded("iconv")) {
3 die("skip iconv extension not available\n");
H A Diconv_substr.phpt4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
6 iconv.internal_charset=ISO-8859-1
41 var_dump(iconv("ISO-2022-JP", "EUC-JP", iconv_substr(iconv("EUC-JP", "ISO-2022-JP", "����ˤ��� ISO-2…
H A Diconv_strrpos.phpt4 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
6 iconv.internal_charset=ISO-8859-1
17 $haystk = iconv($from_charset, $to_charset, $haystk);
H A Dbug72320.phpt5 if (!extension_loaded('iconv')) die('skip ext/iconv required');
/PHP-8.0/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-8.0/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 23 milliseconds

12345