com php-src: Fix two tests: ext/mysqli/tests/mysqli_error_u nicode.phpt ext/mysqli/tests/mysqli_get_client_stats .phpt
| From: | Nikita Popov | Date: | Tue, 22 Nov 2016 17:47:34 +0000 |
| Subject: | com php-src: Fix two tests: ext/mysqli/tests/mysqli_error_u nicode.phpt ext/mysqli/tests/mysqli_get_client_stats .phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95985@lists.php.net to get a copy of this message | ||
Commit: 972b9e989fe40698588e0afc7934a480c94a9416
Author: Tom Van Looy <tom@ctors.net> Tue, 22 Nov 2016 17:34:26 +0100
Committer: Nikita Popov <nikic@php.net> Tue, 22 Nov 2016 18:47:34 +0100
Parents: 1ab44223bfe65f5cd6fc3bfa4f98205a7ed00c4d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=972b9e989fe40698588e0afc7934a480c94a9416
Log:
Fix two tests
Changed paths:
M ext/mysqli/tests/mysqli_error_unicode.phpt
M ext/mysqli/tests/mysqli_get_client_stats.phpt
Diff:
diff --git a/ext/mysqli/tests/mysqli_error_unicode.phpt b/ext/mysqli/tests/mysqli_error_unicode.phpt
index 46bfc88..e6b5585 100644
--- a/ext/mysqli/tests/mysqli_error_unicode.phpt
+++ b/ext/mysqli/tests/mysqli_error_unicode.phpt
@@ -24,6 +24,8 @@ require_once('skipifconnectfailure.inc');
$host, $user, $db, $port, $socket);
}
+ mysqli_query($link, "set names utf8");
+
$tmp = mysqli_error($link);
if (!is_string($tmp) || ('' !== $tmp))
printf("[004] Expecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp,
mysqli_errno($link), mysqli_error($link));
diff --git a/ext/mysqli/tests/mysqli_get_client_stats.phpt
b/ext/mysqli/tests/mysqli_get_client_stats.phpt
index c61ae81..6ebcf3ef 100644
--- a/ext/mysqli/tests/mysqli_get_client_stats.phpt
+++ b/ext/mysqli/tests/mysqli_get_client_stats.phpt
@@ -119,6 +119,7 @@ mysqlnd.collect_memory_statistics=1
mysqli_get_client_stats_assert_eq('result_set_queries', $new_info, $info,
$test_counter);
/* we need to skip this test in unicode - we send set names utf8 during mysql_connect */
+ mysqli_get_client_stats_assert_eq('non_result_set_queries', $new_info, $info,
$test_counter);
mysqli_get_client_stats_assert_eq('buffered_sets', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('unbuffered_sets', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('ps_buffered_sets', $new_info, $info, $test_counter);