Home
last modified time | relevance | path

Searched refs:charset (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/php-src/ext/mysqli/tests/
H A Dmysqli_get_charset.phpt45 printf("[015] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
47 if (!isset($charset->charset) ||
48 !is_string($charset->charset) ||
49 $character_set_connection !== $charset->charset)
50 …string/%s, got %s/%s\n", $character_set_connection, gettype($charset->charset), $charset->charset);
56 if (!isset($charset->dir) ||
57 !is_string($charset->dir))
63 ($charset->min_length > $charset->max_length))
65 gettype($charset->min_length), $charset->min_length);
72 if (!isset($charset->state) ||
[all …]
H A Dmysqli_change_user_set_names.phpt41 foreach ($charsets as $charset => $collation) {
44 $charset != $not_changed['charset_client'] &&
49 $charset != $not_changed['charset_connection'] &&
54 $charset != $not_changed['charset_results'] &&
125 if (!is_object($charset = mysqli_get_charset($link)))
126 printf("[013] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
128 if ($charset->charset != $defaults['charset_connection'])
129 printf("[014] Expecting connection charset to be %s got %s\n",
131 $charset->charset);
133 if ($charset->collation != $defaults['collation_connection'])
[all …]
H A Dmysqli_options.phpt44 foreach ($charsets as $charset) {
48 …if ($charset['Charset'] == 'ucs2' || $charset['Charset'] == 'utf16' || $charset['Charset'] == 'utf…
51 if (true !== mysqli_options($link, MYSQLI_SET_CHARSET_NAME, $charset['Charset'])) {
52 printf("[009] Setting charset name '%s' has failed\n", $charset['Charset']);
/php-src/ext/mysqli/tests/functions/
H A Dmysqli_character_set_name.phpt16 $result = mysqli_query($link, 'SELECT @@character_set_connection AS charset, @@collation_connection…
20 if (!$tmp['charset']) {
24 $charset = mysqli_character_set_name($link);
25 if ($tmp['charset'] !== $charset) {
26 …et %s/%s, got %s/%s\n", get_debug_type($tmp['charset']), $tmp['charset'], get_debug_type($charset)…
H A Dmysqli_character_set_name_oo.phpt16 $result = $link->query('SELECT @@character_set_connection AS charset, @@collation_connection AS col…
20 if (!$tmp['charset']) {
24 $charset = $link->character_set_name();
25 if ($tmp['charset'] !== $charset) {
26 …et %s/%s, got %s/%s\n", get_debug_type($tmp['charset']), $tmp['charset'], get_debug_type($charset)…
H A Dmysqli_set_charset.phpt36 foreach ($charsets as $charset) {
37 if (in_array($charset, UNSUPPORTED_ENCODINGS, true)) {
41 …rintf("CREATE TABLE test_mysqli_set_charset(id INT, label CHAR(1)) CHARACTER SET '%s' ", $charset);
44 mysqli_set_charset($link, $charset);
61 printf("[012 + %s] Expecting %d, got %s, [%d] %s\n", $charset,
66 printf("[013 + %s] Expecting %d, got %s, [%d] %s\n", $charset,
/php-src/ext/iconv/tests/
H A Diconv_mime_encode_001.phpt2 … Encoding parameter exceeds the maximum allowed for preference "input-charset" and "output-charset"
12 "input-charset" => "ISO-8859-1".$extra,
13 "output-charset" => "UTF-8",
22 $preferences["input-charset"] = "ISO-8859-1";
23 $preferences["output-charset"] = "UTF-8".$extra;
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_connect_charset.phpt2 PDO_MYSQL: Defining a connection charset in the DSN
14 /* Connect to mysql to determine the current charset so we can diffinate it */
16 … $charset = $link->query("SHOW VARIABLES LIKE 'character_set_connection'")->fetchObject()->value;
19 $new_charset = ($charset == 'latin1' ? 'ascii' : 'latin1');
24 $link = MySQLPDOTest::factory('PDO', ['charset' => $new_charset]);
27 if ($charset !== $conn_charset) {
/php-src/ext/fileinfo/tests/
H A Dfinfo_buffer_basic-mb.phpt42 string(28) "text/plain; charset=us-ascii"
43 string(26) "text/plain; charset=ebcdic"
44 string(40) "application/octet-stream; charset=binary"
45 string(28) "text/plain; charset=us-ascii"
46 string(28) "image/x-miff; charset=binary"
47 string(25) "text/plain; charset=utf-8"
H A Dfinfo_buffer_variation1-mb.phpt41 string(28) "text/plain; charset=us-ascii"
42 string(26) "text/plain; charset=ebcdic"
43 string(40) "application/octet-stream; charset=binary"
44 string(28) "text/plain; charset=us-ascii"
45 string(28) "image/x-miff; charset=binary"
46 string(25) "text/plain; charset=utf-8"
H A Dfinfo_buffer_variation1.phpt41 string(28) "text/plain; charset=us-ascii"
42 string(26) "text/plain; charset=ebcdic"
43 string(40) "application/octet-stream; charset=binary"
44 string(28) "text/plain; charset=us-ascii"
45 string(28) "image/x-miff; charset=binary"
46 string(25) "text/plain; charset=utf-8"
H A Dfinfo_buffer_basic.phpt42 string(28) "text/plain; charset=us-ascii"
43 string(26) "text/plain; charset=ebcdic"
44 string(40) "application/octet-stream; charset=binary"
45 string(28) "text/plain; charset=us-ascii"
46 string(28) "image/x-miff; charset=binary"
47 string(25) "text/plain; charset=utf-8"
/php-src/ext/dom/tests/modern/html/encoding/
H A DHTMLDocument_createFromFile_http_header.phpt30 "Valid type/subtype without charset" => [
37 "text/html; charset=ISO-8859-1",
38 "\t\r text/html; charset=ISO-8859-1 \t",
39 "\t\r text/html; charset=ISO-8859-1 \t;bar=\"foo\"",
40 "\t\r text/html; charset=ISO-8859-1 \t;bar=\"foo\"\r\n\t ",
41 "text/html; foo=bar;charset=ISO-8859-1",
42 "text/html; foo=bar;charset=ISO-8859-1;bar=\"foooooo\"",
43 "text/html;;;; charset=ISO-8859-1",
85 --- Valid type/subtype without charset ---
H A DHTMLDocument_encoding_edge_case_05.phpt9 $header = "<!doctype html><html><head><meta charset=\"gb18030\"></head><body>";
14 var_dump($dom->charset);
15 $dom->charset = "UTF-8";
21 string(4112) "<!DOCTYPE html><html><head><meta charset="gb18030"></head><body>AAAAAAAAAAAAAAAAAAAAA…
H A DHTMLDocument_encoding_edge_case_07.phpt9 $header = "<!doctype html><html><head><meta charset=\"gb18030\"></head><body>";
14 var_dump($dom->charset);
15 $dom->charset = "UTF-8";
21 string(4112) "<!DOCTYPE html><html><head><meta charset="gb18030"></head><body>AAAAAAAAAAAAAAAAAAAAA…
H A DHTMLDocument_GB18030.phpt9 var_dump($dom->charset);
17 $dom->charset = "UTF-8";
28 <meta charset="gb18030">
34 <meta charset="gb18030">
H A DHTMLDocument_Shift_JIS.phpt9 var_dump($dom->charset);
17 $dom->charset = "UTF-8";
28 <meta charset="shift_jis">
36 <meta charset="shift_jis">
H A DHTMLDocument_UTF8_BOM.phpt9 var_dump($dom->charset);
17 $dom->charset = "UTF-8";
29 <meta charset="utf-16">
36 <meta charset="utf-16">
H A DHTMLDocument_encoding_field_test.phpt9 var_dump($dom->charset);
13 $dom->charset = "nope";
17 var_dump($dom->charset);
21 $dom->charset = "";
H A DHTMLDocument_Windows1251.phpt9 var_dump($dom->charset);
17 $dom->charset = "UTF-8";
28 <meta charset="windows-1251">
36 <meta charset="windows-1251">
/php-src/sapi/cgi/tests/
H A D011.phpt68 Content-type: text/html; charset=UTF-8
73 Content-type: text/html; charset=UTF-8
79 Content-type: text/html; charset=UTF-8
88 Content-type: text/html; charset=UTF-8
99 Content-type: text/html; charset=UTF-8
109 Content-type: text/html; charset=UTF-8
121 Content-type: text/html; charset=UTF-8
131 Content-type: text/html; charset=UTF-8
139 Content-type: text/html; charset=UTF-8
147 Content-type: text/html; charset=UTF-8
[all …]
H A D002.phpt32 Content-type: text/html%r; charset=.*|%r
37 Content-type: text/html%r; charset=.*|%r
42 Content-type: text/html%r; charset=.*|%r
47 Content-type: text/html%r; charset=.*|%r
/php-src/ext/standard/
H A Dhtml.c90 enum entity_charset charset, in get_next_char() argument
105 switch (charset) { in get_next_char()
460 switch (charset) { in map_from_unicode()
757 switch (charset) { in write_octet_sequence()
818 enum entity_charset charset) in traverse_for_entities() argument
895 if (charset != cs_utf_8) { in traverse_for_entities()
975 enum entity_charset charset; in php_unescape_html_entities() local
1016 enum entity_charset charset, in find_entity_for_char() argument
1128 if (charset == cs_utf_8) { in php_escape_html_entities_ex()
1387 enum entity_charset charset, in write_s3row_data() argument
[all …]
/php-src/ext/standard/tests/file/
H A Dstream_rfc2397_004.phpt11 'data://text/plain;charset=US-ASCII,test',
12 'data://;charset=UTF-8,Hello',
13 'data://text/plain;charset=UTF-8,Hello',
H A Dstream_rfc2397_005.phpt14 'data:text/plain;charset=US-ASCII,test',
15 'data:;charset=UTF-8,Hello',
16 'data:text/plain;charset=UTF-8,Hello',

Completed in 30 milliseconds

12345678910>>...12