Skip to content

Commit eff9db0

Browse files
committed
Debug mysqli_get_server_info() test
1 parent 24e0e75 commit eff9db0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/mysqli/tests/functions/mysqli_get_server_info.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
1616
$sinfo = mysqli_get_server_info($link);
1717

1818
/* Version is in format: X.Y.Z */
19-
var_dump(preg_match("#^\d+\.\d+\.\d+$#", $sinfo) === 1);
19+
$status = preg_match("#^\d+\.\d+\.\d+$#", $sinfo) === 1;
20+
var_dump($status);
21+
if (!$status) {
22+
var_dump($sinfo);
23+
}
2024

2125
mysqli_close($link);
2226
print "done!";

0 commit comments

Comments
 (0)