]> granicus.if.org Git - php/commitdiff
Improve test portability
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 14 Aug 2020 13:33:02 +0000 (15:33 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 14 Aug 2020 13:33:02 +0000 (15:33 +0200)
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.

ext/mysqli/tests/mysqli_incomplete_initialization.phpt

index d6f752051fde6db4edfe4ae4a66769fce5c97f07..533ea10af10c612faa83d968314df73f21fd134d 100644 (file)
@@ -8,7 +8,7 @@ require_once('skipif.inc');
 <?php
 
 $mysqli = new mysqli();
-@$mysqli->__construct(null);
+@$mysqli->__construct('doesnotexist');
 $mysqli->close();
 
 ?>