Skip to content

Commit 972b9e9

Browse files
tvlooynikic
authored andcommitted
Fix two tests
1 parent 1ab4422 commit 972b9e9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ext/mysqli/tests/mysqli_error_unicode.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ require_once('skipifconnectfailure.inc');
2424
$host, $user, $db, $port, $socket);
2525
}
2626

27+
mysqli_query($link, "set names utf8");
28+
2729
$tmp = mysqli_error($link);
2830
if (!is_string($tmp) || ('' !== $tmp))
2931
printf("[004] Expecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));

ext/mysqli/tests/mysqli_get_client_stats.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ mysqlnd.collect_memory_statistics=1
119119
mysqli_get_client_stats_assert_eq('result_set_queries', $new_info, $info, $test_counter);
120120

121121
/* we need to skip this test in unicode - we send set names utf8 during mysql_connect */
122+
mysqli_get_client_stats_assert_eq('non_result_set_queries', $new_info, $info, $test_counter);
122123
mysqli_get_client_stats_assert_eq('buffered_sets', $new_info, $info, $test_counter);
123124
mysqli_get_client_stats_assert_eq('unbuffered_sets', $new_info, $info, $test_counter);
124125
mysqli_get_client_stats_assert_eq('ps_buffered_sets', $new_info, $info, $test_counter);

0 commit comments

Comments
 (0)