Home
last modified time | relevance | path

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

12345678910>>...40

/PHP-8.1/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.c173 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding()
175 return *encoding; in mbfl_name2encoding()
180 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding()
183 return *encoding; in mbfl_name2encoding()
189 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding()
193 return *encoding; in mbfl_name2encoding()
206 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_no2encoding()
208 return *encoding; in mbfl_no2encoding()
218 return encoding ? encoding->no_encoding : mbfl_no_encoding_invalid; in mbfl_name2no_encoding()
224 return encoding ? encoding->name : ""; in mbfl_no_encoding2name()
[all …]
/PHP-8.1/ext/mbstring/tests/
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 Dgh9535b.phpt23 foreach($encodings as $encoding) {
27 echo $encoding.': '.$reconverted_str.PHP_EOL;
34 foreach($encodings as $encoding) {
38 echo $encoding.': '.$reconverted_str.PHP_EOL;
45 foreach($encodings as $encoding) {
49 echo $encoding.': '.$reconverted_str.PHP_EOL;
56 foreach($encodings as $encoding) {
60 echo $encoding.': '.$reconverted_str.PHP_EOL;
67 foreach($encodings as $encoding) {
71 echo $encoding.': '.$reconverted_str.PHP_EOL;
[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.phpt28 foreach($encodings as $encoding) {
32 echo $encoding.': '.$reconverted_str.PHP_EOL;
39 foreach($encodings as $encoding) {
43 echo $encoding.': '.$reconverted_str.PHP_EOL;
50 foreach($encodings as $encoding) {
54 echo $encoding.': '.$reconverted_str.PHP_EOL;
61 foreach($encodings as $encoding) {
65 echo $encoding.': '.$reconverted_str.PHP_EOL;
72 foreach($encodings as $encoding) {
76 echo $encoding.': '.$reconverted_str.PHP_EOL;
[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_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_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_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_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
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_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
/PHP-8.1/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-8.1/ext/mbstring/
H A Dmbstring.stub.php9 function mb_internal_encoding(?string $encoding = null): string|bool {} argument
18 function mb_http_output(?string $encoding = null): string|bool {} argument
24 function mb_detect_order(array|string|null $encoding = null): array|bool {} argument
30 function mb_preferred_mime_name(string $encoding): string|false {} argument
40 function mb_strlen(string $string, ?string $encoding = null): int {} argument
70 function mb_strwidth(string $string, ?string $encoding = null): int {} argument
85 function mb_strtoupper(string $string, ?string $encoding = null): string {} argument
103 function mb_encoding_aliases(string $encoding): array {} argument
133 function mb_scrub(string $string, ?string $encoding = null): string {} argument
135 function mb_ord(string $string, ?string $encoding = null): int|false {} argument
[all …]
/PHP-8.1/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_strrpos_error2.phpt2 Test iconv_strrpos() function : error conditions - pass an unknown encoding
8 * Pass iconv_strrpos() an encoding that doesn't exist
16 $encoding = 'unknown-encoding';
18 var_dump(iconv_strrpos($haystack, $needle , $encoding));
25 Warning: iconv_strrpos(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not al…

Completed in 405 milliseconds

12345678910>>...40