cvs: php-src(PHP_5_2) /ext/mysqli/tests bug42548.phpt
| From: | Antony Dovgal | Date: | Fri, 18 Jan 2008 12:12:20 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/mysqli/tests bug42548.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47906@lists.php.net to get a copy of this message | ||
tony2001 Fri Jan 18 12:12:20 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/mysqli/tests bug42548.phpt
Log:
fix test
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/bug42548.phpt?r1=1.2.2.2&r2=1.2.2.3&diff_format=u
Index: php-src/ext/mysqli/tests/bug42548.phpt
diff -u php-src/ext/mysqli/tests/bug42548.phpt:1.2.2.2
php-src/ext/mysqli/tests/bug42548.phpt:1.2.2.3
--- php-src/ext/mysqli/tests/bug42548.phpt:1.2.2.2 Tue Jan 1 16:51:09 2008
+++ php-src/ext/mysqli/tests/bug42548.phpt Fri Jan 18 12:12:19 2008
@@ -4,8 +4,10 @@
<?php if (!extension_loaded("mysqli")) print "skip"; ?>
--FILE--
<?php
+include "connect.inc";
+
$mysqli = mysqli_init();
-$mysqli->real_connect('localhost', 'root', '', 'test');
+$mysqli->real_connect($host, $user, $passwd, 'test');
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();