Home
last modified time | relevance | path

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

12345678910

/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_get_charset.phpt71 printf("[015] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
73 if (!isset($charset->charset) ||
74 !in_array(gettype($charset->charset), array("string", "unicode")) ||
75 ($character_set_connection !== $charset->charset))
76 …string/%s, got %s/%s\n", $character_set_connection, gettype($charset->charset), $charset->charset);
82 if (!isset($charset->dir) ||
83 !is_string($charset->dir))
89 ($charset->min_length > $charset->max_length))
91 gettype($charset->min_length), $charset->min_length);
94 !is_int($charset->number) ||
[all …]
H A Dmysqli_character_set_name_oo.phpt35 …if (!$res = $mysqli->query('SELECT @@character_set_connection AS charset, @@collation_connection A…
39 if (!$tmp['charset'])
42 $charset = $mysqli->character_set_name();
43 if ($tmp['charset'] !== $charset) {
44 if ($tmp['collation'] === $charset) {
46 $tmp['collation'], $tmp['charset'], gettype($charset), $charset);
48 …haracter set %s/%s, got %s/%s\n", gettype($tmp['charset']), $tmp['charset'], gettype($charset), $c…
53 if ($charset2 !== $charset) {
55 gettype($charset2), $charset2, gettype($charset), $charset);
H A Dmysqli_character_set_name.phpt41 …if (!$res = mysqli_query($link, 'SELECT @@character_set_connection AS charset, @@collation_connect…
45 if (!$tmp['charset'])
48 $charset = mysqli_character_set_name($link);
49 if ($tmp['charset'] !== $charset) {
50 if ($tmp['collation'] === $charset) {
52 $tmp['collation'], $tmp['charset'], gettype($charset), $charset);
54 …haracter set %s/%s, got %s/%s\n", gettype($tmp['charset']), $tmp['charset'], gettype($charset), $c…
59 if ($charset2 !== $charset) {
60 …me returned %s/%s, expected %s/%s\n", gettype($charset2), $charset2, gettype($charset), $charset);
H A Dmysqli_change_user_set_names.phpt56 foreach ($charsets as $charset => $collation) {
59 $charset != $not_changed['charset_client'] &&
64 $charset != $not_changed['charset_connection'] &&
69 $charset != $not_changed['charset_results'] &&
148 if (!is_object($charset = mysqli_get_charset($link)))
149 printf("[013] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
151 if ($charset->charset != $defaults['charset_connection'])
152 printf("[014] Expecting connection charset to be %s got %s\n",
154 $charset->charset);
156 if ($charset->collation != $defaults['collation_connection'])
[all …]
H A Dmysqli_character_set.phpt47 foreach ($charsets as $charset) {
48 $k = $charset['Charset'];
52 …if ($charset['Charset'] == 'ucs2' || $charset['Charset'] == 'utf16' || $charset['Charset'] == 'utf…
59 …$sql = sprintf("CREATE TABLE test(id INT, label CHAR(1)) CHARACTER SET '%s' ", $charset['Charset']…
65 if (!mysqli_set_charset($link, $charset['Charset'])) {
74 var_dump($charset['Charset']);
H A Dmysqli_options.phpt87 foreach ($charsets as $charset) {
88 $k = $charset['Charset'];
91 …if ($charset['Charset'] == 'ucs2' || $charset['Charset'] == 'utf16' || $charset['Charset'] == 'utf…
94 if (true !== mysqli_options($link, MYSQLI_SET_CHARSET_NAME, $charset['Charset'])) {
95 printf("[009] Setting charset name '%s' has failed\n", $charset['Charset']);
/PHP-5.5/ext/iconv/tests/
H A Diconv_mime_decode_variation3.phpt2 Test iconv_mime_decode() function : usage variations - Pass different data types to charset arg
10 /* Prototype : string iconv_mime_decode(string encoded_string [, int mode, string charset])
22 // Some of the parameters actually passed to charset will request to use
23 // a default charset determined by the platform. In order for this test to
27 $charset = 'UTF-8';
121 Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `0' is not allowed in %s on li…
126 Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `1' is not allowed in %s on li…
141 Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `10.5' is not allowed in %s on…
161 Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `0.5' is not allowed in %s on …
172 Notice: iconv_mime_decode(): Wrong charset, conversion from `???' to `1' is not allowed in %s on li…
[all …]
H A Diconv_strpos_variation4.phpt2 Test iconv_strpos() function : usage variations - pass different data types as $charset arg
10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
114 Notice: iconv_strpos(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on lin…
119 Notice: iconv_strpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin…
124 Notice: iconv_strpos(): Wrong charset, conversion from `12345' to `UCS-4LE' is not allowed in %s on…
129 Notice: iconv_strpos(): Wrong charset, conversion from `-2345' to `UCS-4LE' is not allowed in %s on…
134 Notice: iconv_strpos(): Wrong charset, conversion from `10.5' to `UCS-4LE' is not allowed in %s on …
139 Notice: iconv_strpos(): Wrong charset, conversion from `-10.5' to `UCS-4LE' is not allowed in %s on…
154 Notice: iconv_strpos(): Wrong charset, conversion from `0.5' to `UCS-4LE' is not allowed in %s on l…
165 Notice: iconv_strpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin…
[all …]
H A Diconv_strlen_variation2.phpt10 /* Prototype : int iconv_strlen(string str [, string charset])
111 Notice: iconv_strlen(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on lin…
116 Notice: iconv_strlen(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin…
121 Notice: iconv_strlen(): Wrong charset, conversion from `12345' to `UCS-4LE' is not allowed in %s on…
126 Notice: iconv_strlen(): Wrong charset, conversion from `-2345' to `UCS-4LE' is not allowed in %s on…
131 Notice: iconv_strlen(): Wrong charset, conversion from `10.5' to `UCS-4LE' is not allowed in %s on …
136 Notice: iconv_strlen(): Wrong charset, conversion from `-10.5' to `UCS-4LE' is not allowed in %s on…
141 Notice: iconv_strlen(): Wrong charset, conversion from `123456789000' to `UCS-4LE' is not allowed i…
151 Notice: iconv_strlen(): Wrong charset, conversion from `0.5' to `UCS-4LE' is not allowed in %s on l…
162 Notice: iconv_strlen(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin…
[all …]
H A Diconv_strrpos_variation3.phpt10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
112 Notice: iconv_strrpos(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on li…
117 Notice: iconv_strrpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on li…
122 Notice: iconv_strrpos(): Wrong charset, conversion from `12345' to `UCS-4LE' is not allowed in %s o…
127 Notice: iconv_strrpos(): Wrong charset, conversion from `-2345' to `UCS-4LE' is not allowed in %s o…
132 Notice: iconv_strrpos(): Wrong charset, conversion from `10.5' to `UCS-4LE' is not allowed in %s on…
137 Notice: iconv_strrpos(): Wrong charset, conversion from `-10.5' to `UCS-4LE' is not allowed in %s o…
142 Notice: iconv_strrpos(): Wrong charset, conversion from `123456789000' to `UCS-4LE' is not allowed …
152 Notice: iconv_strrpos(): Wrong charset, conversion from `0.5' to `UCS-4LE' is not allowed in %s on …
163 Notice: iconv_strrpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on li…
[all …]
H A Diconv_strlen.phpt7 function foo($str, $charset) {
9 var_dump(iconv_strlen($str, $charset));
/PHP-5.5/ext/pdo_mysql/tests/
H A Dpdo_mysql_connect_charset.phpt2 PDO_MYSQL: Defining a connection charset in the DSN
13 /* Connect to mysql to determine the current charset so we can diffinate it */
15 $charset = $link->query("SHOW VARIABLES LIKE 'character_set_connection'")->fetchObject()->value;
18 $new_charset = ($charset == 'latin1' ? 'ascii' : 'latin1');
23 $link = MySQLPDOTest::factory('PDO', false, null, Array('charset' => $new_charset));
26 if ($charset !== $conn_charset) {
H A Dpdo_mysql___construct.phpt189 // MySQL Server 4.1 - charset support available
198 $charset = PDO_MYSQL_TEST_CHARSET;
204 $stmt = $db->query(sprintf('SHOW CHARACTER SET LIKE "%s"', $charset));
209 $dsn = MySQLPDOTest::getDSN(array('charset' => $charset), 'charset=' . $invalid_charset);
220 $dsn = MySQLPDOTest::getDSN(array('charset' => $invalid_charset), 'charset=' . $charset);
226 if ($tmp['_charset'] != $charset)
228 $tmp['_charset'], $charset);
233 …("[030] You're trying to run the tests with charset '%s' which seems not supported by the server!"…
242 // we do another test to verify that the charset has been set.
255 $dsn = MySQLPDOTest::getDSN(array('charset' => 'latin1'));
[all …]
/PHP-5.5/ext/fileinfo/tests/
H A Dfinfo_buffer_basic.phpt49 string(28) "text/plain; charset=us-ascii"
50 string(26) "text/plain; charset=ebcdic"
51 string(40) "application/octet-stream; charset=binary"
52 string(28) "text/plain; charset=us-ascii"
53 string(28) "text/plain; charset=us-ascii"
54 string(25) "text/plain; charset=utf-8"
H A Dfinfo_buffer_variation1.phpt48 string(28) "text/plain; charset=us-ascii"
49 string(26) "text/plain; charset=ebcdic"
50 string(40) "application/octet-stream; charset=binary"
51 string(28) "text/plain; charset=us-ascii"
52 string(28) "text/plain; charset=us-ascii"
53 string(25) "text/plain; charset=utf-8"
/PHP-5.5/ext/standard/
H A Dhtml.c90 enum entity_charset charset, in get_next_char() argument
105 switch (charset) { in get_next_char()
444 charset = charset_map[i].charset; in determine_charset()
454 return charset; in determine_charset()
569 switch (charset) { in map_from_unicode()
866 switch (charset) { in write_octet_sequence()
932 enum entity_charset charset) in traverse_for_entities() argument
1009 if (charset != cs_utf_8) { in traverse_for_entities()
1090 enum entity_charset charset; in php_unescape_html_entities() local
1134 enum entity_charset charset, in find_entity_for_char() argument
[all …]
/PHP-5.5/ext/standard/tests/strings/
H A Dbug44703.phpt25 Warning: htmlspecialchars(): charset `1' not supported, assuming utf-8 in %s on line %d
28 Warning: htmlspecialchars(): charset `12' not supported, assuming utf-8 in %s on line %d
31 Warning: htmlspecialchars(): charset `125' not supported, assuming utf-8 in %s on line %d
35 Warning: htmlspecialchars(): charset `12526' not supported, assuming utf-8 in %s on line %d
39 Warning: htmlspecialchars(): charset `8666' not supported, assuming utf-8 in %s on line %d
45 Warning: htmlspecialchars(): charset `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…
H A Dconvert_cyr_string.phpt32 Warning: convert_cyr_string(): Unknown source charset: in %s on line %d
34 Warning: convert_cyr_string(): Unknown destination charset: in %s on line %d
40 Warning: convert_cyr_string(): Unknown source charset: q in %s on line %d
47 Warning: convert_cyr_string(): Unknown destination charset: q in %s on line %d
/PHP-5.5/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',
/PHP-5.5/ext/imap/tests/
H A Dbug53377.phpt19 ["charset"]=>
26 ["charset"]=>
33 ["charset"]=>
/PHP-5.5/sapi/cgi/tests/
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
H A D003.phpt45 Content-type: text/html%r; charset=.*|%r
53 Content-type: text/html%r; charset=.*|%r
58 Content-type: text/html%r; charset=.*|%r
/PHP-5.5/sapi/cli/tests/
H A Dbug61977.phpt47 foo.html => Content-Type: text/html; charset=UTF-8
48 foo.htm => Content-Type: text/html; charset=UTF-8
50 foo.css => Content-Type: text/css; charset=UTF-8
51 foo.js => Content-Type: text/javascript; charset=UTF-8
/PHP-5.5/ext/session/tests/
H A D018.phpt22 <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php>
27 <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php><input type="hidden" name="PHPSESSID"…

Completed in 67 milliseconds

12345678910