summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/connect.inc
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-09-22 18:25:33 +0000
committerAndrey Hristov <andrey@php.net>2010-09-22 18:25:33 +0000
commitbdaec773b54431a74a0b3a3927c5261ddfde2bc6 (patch)
treedbd4e8e7c1b32be5a762bf9299ef14dc99f39a4b /ext/mysqli/tests/connect.inc
parent7f0ec2a1270bf8779d0b80b7be47e84bd901b688 (diff)
downloadphp-git-bdaec773b54431a74a0b3a3927c5261ddfde2bc6.tar.gz
Unify, force one charset at connect, thus fixing
test failures because different servers have different system charsets.
Diffstat (limited to 'ext/mysqli/tests/connect.inc')
-rw-r--r--ext/mysqli/tests/connect.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqli/tests/connect.inc b/ext/mysqli/tests/connect.inc
index 92caa25e93..02a71ec0b8 100644
--- a/ext/mysqli/tests/connect.inc
+++ b/ext/mysqli/tests/connect.inc
@@ -90,10 +90,12 @@
if ($flags !== false) {
$link = mysqli_init();
+ $link->options(MYSQLI_SET_CHARSET_NAME, "utf8");
if (!mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags))
$link = false;
} else {
$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
+ $link->set_charset("utf8");
}
return $link;