Skip to content

Commit 8d86925

Browse files
committed
Fix mysqli_get_links_stats test failure as well
1 parent 1552740 commit 8d86925

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ext/mysqli/tests/mysqli_pconn_max_links.phpt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ mysqli.rollback_on_cached_plink=1
5959
mysqli_errno($plink), mysqli_error($plink));
6060
}
6161

62-
var_dump(mysqli_get_links_stats(1));
62+
try {
63+
mysqli_get_links_stats(1);
64+
} catch (ArgumentCountError $exception) {
65+
echo $exception->getMessage() . "\n";
66+
}
6367

6468
echo "Before pconnect:";
6569
var_dump(mysqli_get_links_stats());
@@ -201,9 +205,8 @@ mysqli_query($link, 'DROP USER pcontest');
201205

202206
mysqli_close($link);
203207
?>
204-
--EXPECTF--
205-
Warning: mysqli_get_links_stats(): no parameters expected in %s on line %d
206-
NULL
208+
--EXPECT--
209+
mysqli_get_links_stats() expects exactly 0 parameters, 1 given
207210
Before pconnect:array(3) {
208211
["total"]=>
209212
int(1)
@@ -256,7 +259,7 @@ array(2) {
256259
["label"]=>
257260
string(1) "a"
258261
}
259-
[015] Can open more persistent connections than allowed, [0]
262+
[015] Can open more persistent connections than allowed, [0]
260263
array(3) {
261264
["total"]=>
262265
int(3)

0 commit comments

Comments
 (0)