Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 25 of 1133) sorted by relevance

12345678910>>...46

/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.c321 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding_ex()
343 return *encoding; in mbfl_name2encoding_ex()
350 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding_ex()
353 return *encoding; in mbfl_name2encoding_ex()
359 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding_ex()
360 if ((*encoding)->aliases) { in mbfl_name2encoding_ex()
363 return *encoding; in mbfl_name2encoding_ex()
376 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_no2encoding()
378 return *encoding; in mbfl_no2encoding()
388 return encoding ? encoding->name : ""; in mbfl_no_encoding2name()
[all …]
/php-src/ext/mbstring/tests/
H A Dgh9535b.phpt16 foreach($encodings as $encoding) {
20 echo $encoding.': '.$reconverted_str.PHP_EOL;
27 foreach($encodings as $encoding) {
31 echo $encoding.': '.$reconverted_str.PHP_EOL;
38 foreach($encodings as $encoding) {
42 echo $encoding.': '.$reconverted_str.PHP_EOL;
49 foreach($encodings as $encoding) {
53 echo $encoding.': '.$reconverted_str.PHP_EOL;
60 foreach($encodings as $encoding) {
64 echo $encoding.': '.$reconverted_str.PHP_EOL;
[all …]
H A Dbug43998.phpt8 * Two error messages returned for incorrect encoding for mb_strto[upper|lower]
34 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "12345" given
35 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "12345" given
38 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "1.23456789E-9" given
39 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "1.23456789E-9" given
42 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "1" given
43 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "1" given
46 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "" given
47 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "" given
50 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "" given
[all …]
H A Dmb_str_unknown_encoding.phpt2 mb_str*() - unknown encoding
145 mb_chr(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
150 mb_ord(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
151 mb_strcut(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
153 mb_stripos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
154 mb_stristr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
155 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
156 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
157 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
161 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
[all …]
H A Dmb_regex_encoding_variation2.phpt77 foreach($encoding as $enc) {
100 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-4BE" given
110 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2" given
115 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2BE" given
120 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2LE" given
155 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UTF-7" given
200 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "JIS" given
300 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "7bit" given
305 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "8bit" given
320 mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "HZ" given
[all …]
H A Dgh9535.phpt25 foreach($encodings as $encoding) {
29 echo $encoding.': '.$reconverted_str.PHP_EOL;
36 foreach($encodings as $encoding) {
40 echo $encoding.': '.$reconverted_str.PHP_EOL;
47 foreach($encodings as $encoding) {
51 echo $encoding.': '.$reconverted_str.PHP_EOL;
60 foreach($encodings as $encoding) {
64 echo $encoding.': '.$reconverted_str.PHP_EOL;
72 foreach($encodings as $encoding) {
81 foreach($encodings as $encoding) {
[all …]
H A Dmb_substr_count_error2.phpt2 Test mb_substr_count() function : error conditions - pass unknown encoding
8 * Test behaviour of mb_substr_count() function when passed an unknown encoding
15 $encoding = 'unknown-encoding';
17 echo "\n-- Testing mb_substr_count() function with an unknown encoding --\n";
20 var_dump(mb_substr_count($haystack, $needle, $encoding));
29 -- Testing mb_substr_count() function with an unknown encoding --
30 mb_substr_count(): Argument #3 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strtoupper_error2.phpt2 Test mb_strtoupper() function : error conditions - pass an unknown encoding
8 * Pass an unknown encoding as $encoding argument to check behaviour of mbstrtoupper()
14 $encoding = 'unknown-encoding';
17 var_dump( mb_strtoupper($sourcestring, $encoding) );
25 mb_strtoupper(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_check_encoding_invalid_encodings.phpt11 echo 'Using "BAD" as encoding' . \PHP_EOL;
23 echo 'Using "pass" as encoding' . \PHP_EOL;
37 Using "BAD" as encoding
38 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "BAD" given
39 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "BAD" given
40 Using "pass" as encoding
41 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "pass" given
42 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "pass" given
H A Dmb_strlen_error2.phpt2 Test mb_strlen() function : error conditions - pass an unknown encoding
8 * Test mb_strlen when passed an unknown encoding
15 $encoding = 'unknown-encoding';
18 var_dump(mb_strlen($string, $encoding));
26 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strtolower_error2.phpt2 Test mb_strtolower() function : error conditions - pass an unknown encoding
8 * Pass an unknown encoding to mb_strtolower() to test behaviour
14 $encoding = 'unknown-encoding';
17 var_dump( mb_strtolower($sourcestring, $encoding) );
25 mb_strtolower(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_stripos_error2.phpt2 Test mb_stripos() function : error conditions - Pass unknown encoding
8 * Pass an unknown encoding to mb_stripos() to test behaviour
15 $encoding = 'unknown-encoding';
18 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
26 mb_stripos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strpos_error2.phpt2 Test mb_strpos() function : error conditions - Pass unknown encoding
8 * Pass an unknown encoding to mb_strpos() to test behaviour
15 $encoding = 'unknown-encoding';
18 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
26 mb_strpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strripos_error2.phpt2 Test mb_strripos() function : error conditions - Pass unknown encoding
8 * Pass an unknown encoding to mb_strripos() to test behaviour
15 $encoding = 'unknown-encoding';
18 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
26 mb_strripos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_substr_error2.phpt2 Test mb_substr() function : error conditions - Pass an unknown encoding
8 * Pass an unknown encoding to mb_substr() to test behaviour
16 $encoding = 'unknown-encoding';
19 var_dump( mb_substr($str, $start, $length, $encoding));
27 mb_substr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_stristr_error2.phpt10 echo "\n-- Testing mb_stristr() with unknown encoding --\n";
13 $encoding = 'unknown-encoding';
17 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
26 -- Testing mb_stristr() with unknown encoding --
27 mb_stristr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrchr_error2.phpt10 echo "\n-- Testing mb_strrchr() with unknown encoding --\n";
13 $encoding = 'unknown-encoding';
17 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
26 -- Testing mb_strrchr() with unknown encoding --
27 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrichr_error2.phpt10 echo "\n-- Testing mb_strrichr() with unknown encoding --\n";
13 $encoding = 'unknown-encoding';
17 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
26 -- Testing mb_strrichr() with unknown encoding --
27 mb_strrichr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrpos_error2.phpt2 Test mb_strrpos() function : error conditions - pass an unknown encoding
8 * Pass mb_strrpos() an encoding that doesn't exist
16 $encoding = 'unknown-encoding';
19 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
27 mb_strrpos(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strstr_error2.phpt10 echo "\n-- Testing mb_strstr() with unknown encoding --\n";
13 $encoding = 'unknown-encoding';
17 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
26 -- Testing mb_strstr() with unknown encoding --
27 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
/php-src/ext/dom/tests/
H A DDOMDocument_encoding_basic.phpt26 echo "Adding invalid encoding: $ret\n";
31 $ret = $dom->encoding = 'ISO-8859-1';
32 echo "Adding ISO-8859-1 encoding: $ret\n";
35 $ret = $dom->encoding = 'UTF-8';
36 echo "Adding UTF-8 encoding: $ret\n";
39 $ret = $dom->encoding = 'UTF-16';
40 echo "Adding UTF-16 encoding: $ret\n";
47 Invalid document encoding
48 Adding ISO-8859-1 encoding: ISO-8859-1
50 Adding UTF-8 encoding: UTF-8
[all …]
H A Dgh12002.phpt2 GH-12002 (DOMDocument::encoding memory leak with invalid encoding)
14 $dom->encoding = make_nonconst('utf-8');
15 var_dump($dom->encoding);
17 $dom->encoding = make_nonconst('foobar');
21 var_dump($dom->encoding);
22 $dom->encoding = make_nonconst('utf-16le');
23 var_dump($dom->encoding);
25 $dom->encoding = NULL;
29 var_dump($dom->encoding);
34 Invalid document encoding
[all …]
/php-src/ext/mbstring/
H A Dmbstring.stub.php58 function mb_internal_encoding(?string $encoding = null): string|bool {} argument
67 function mb_http_output(?string $encoding = null): string|bool {} argument
73 function mb_detect_order(array|string|null $encoding = null): array|bool {} argument
79 function mb_preferred_mime_name(string $encoding): string|false {} argument
89 function mb_strlen(string $string, ?string $encoding = null): int {} argument
119 function mb_strwidth(string $string, ?string $encoding = null): int {} argument
138 function mb_ucfirst(string $string, ?string $encoding = null): string {} argument
160 function mb_encoding_aliases(string $encoding): array {} argument
190 function mb_scrub(string $string, ?string $encoding = null): string {} argument
192 function mb_ord(string $string, ?string $encoding = null): int|false {} argument
[all …]
/php-src/ext/iconv/tests/
H A Diconv_strlen_error2.phpt2 Test iconv_strlen() function : error conditions - pass an unknown encoding
8 * Test iconv_strlen when passed an unknown encoding
15 $encoding = 'unknown-encoding';
17 var_dump(iconv_strlen($string, $encoding));
23 Warning: iconv_strlen(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not all…
H A Diconv_strpos_error2.phpt2 Test iconv_strpos() function : error conditions - Pass unknown encoding
8 * Pass an unknown encoding to iconv_strpos() to test behaviour
15 $encoding = 'unknown-encoding';
17 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
24 Warning: iconv_strpos(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not all…

Completed in 31 milliseconds

12345678910>>...46