com php-src: Fix broken test Need to use the configured connection parameters here. We can't assume the test user has access.:
ext/mysqli/tests/bug63398.phpt
| From: | Rasmus Lerdorf | Date: | Fri, 14 Dec 2012 00:41:56 +0000 |
| Subject: | com php-src: Fix broken test Need to use the configured connection parameters here. We can't assume the test user has access.: ext/mysqli/tests/bug63398.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70718@lists.php.net to get a copy of this message | ||
Commit: 9d1bc1b622f1c28a55fe4dc4e87e111aff6ed8b8
Author: Rasmus Lerdorf <rasmus@php.net> Thu, 13 Dec 2012 16:41:56 -0800
Parents: eecdb4c254bafe5fc53b1e06055482944cd3560f
Branches: PHP-5.3 PHP-5.4 PHP-5..5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9d1bc1b622f1c28a55fe4dc4e87e111aff6ed8b8
Log:
Fix broken test
Need to use the configured connection parameters here. We can't assume
the test user has access.
Changed paths:
M ext/mysqli/tests/bug63398.phpt
Diff:
diff --git a/ext/mysqli/tests/bug63398.phpt b/ext/mysqli/tests/bug63398.phpt
index 6dffa8c..26d00c9 100644
--- a/ext/mysqli/tests/bug63398.phpt
+++ b/ext/mysqli/tests/bug63398.phpt
@@ -10,7 +10,7 @@ if (!$IS_MYSQLND) {
?>
--FILE--
<?php
-$link = new mysqli('localhost', 'test', NULL, 'test');
+$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
mysqli_close($link);