Skip to content

Commit 5072321

Browse files
committed
Improve test portability
We have to ensure that the attempted connection to the MySQL server fails, and do that by passing an unknown host instead of falling back to localhost.
1 parent 2ca5d66 commit 5072321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/tests/mysqli_incomplete_initialization.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require_once('skipif.inc');
88
<?php
99

1010
$mysqli = new mysqli();
11-
@$mysqli->__construct(null);
11+
@$mysqli->__construct('doesnotexist');
1212
$mysqli->close();
1313

1414
?>

0 commit comments

Comments
 (0)