summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/065.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/065.phpt')
-rw-r--r--ext/mysqli/tests/065.phpt40
1 files changed, 0 insertions, 40 deletions
diff --git a/ext/mysqli/tests/065.phpt b/ext/mysqli/tests/065.phpt
deleted file mode 100644
index d0fa071169..0000000000
--- a/ext/mysqli/tests/065.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-set character set
---SKIPIF--
-<?php
-require_once('skipif.inc');
-if (!function_exists('mysqli_set_charset')) {
- die('skip mysqli_set_charset() not available');
-}
-?>
---FILE--
-<?php
- include "connect.inc";
-
- $mysql = new mysqli($host, $user, $passwd);
-
- $esc_str = chr(0xbf) . chr(0x5c);
-
- if ($mysql->set_charset("latin1")) {
- /* 5C should be escaped */
- $len[0] = strlen($mysql->real_escape_string($esc_str));
- $charset[0] = $mysql->client_encoding();
- }
-
- if ($mysql->set_charset("gbk")) {
- /* nothing should be escaped, it's a valid gbk character */
- $len[1] = strlen($mysql->real_escape_string($esc_str));
- $charset[1] = $mysql->client_encoding();
- }
-
- $mysql->close();
- var_dump($len[0]);
- var_dump($len[1]);
- var_dump($charset[0]);
- var_dump($charset[1]);
-?>
---EXPECT--
-int(3)
-int(2)
-string(6) "latin1"
-string(3) "gbk"