]> granicus.if.org Git - php/commitdiff
Fix broken test
authorRasmus Lerdorf <rasmus@php.net>
Fri, 14 Dec 2012 00:41:56 +0000 (16:41 -0800)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 14 Dec 2012 00:41:56 +0000 (16:41 -0800)
Need to use the configured connection parameters here. We can't assume
the test user has access.

ext/mysqli/tests/bug63398.phpt

index 6dffa8c1f6e447541328e5e6927c7f706b2b5cd6..26d00c94206147693521e8f5ebe2daa3a99060f4 100644 (file)
@@ -10,7 +10,7 @@ if (!$IS_MYSQLND) {
 ?>\r
 --FILE--\r
 <?php\r
-$link = new mysqli('localhost', 'test', NULL, 'test');\r
+$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
 \r
 mysqli_close($link);\r
 \r