Author: uwendel
Date: 2007-07-06 14:55:12 +0200 (Fri, 06 Jul 2007)
New Revision: 667
Modified:
trunk/tests/ext/mysqli/mysqli_connect_errno.phpt
trunk/tests/ext/mysqli/mysqli_connect_error.phpt
Log:
Let's not suppress error messages, we really want a connection and see if it fails.
Modified: trunk/tests/ext/mysqli/mysqli_connect_errno.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_connect_errno.phpt 2007-07-06 12:31:55 UTC (rev 666)
+++ trunk/tests/ext/mysqli/mysqli_connect_errno.phpt 2007-07-06 12:55:12 UTC (rev 667)
@@ -13,8 +13,8 @@
// too many parameter
if (0 !== ($tmp = @mysqli_connect_errno($link)))
printf("[001] Expecting integer/0, got %s/%s\n", gettype($tmp), $tmp);
-
- if (!$link = @mysqli_connect($host, $user, $passwd, $db, $port, $socket))
+
+ if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***,
dbname=%s, port=%s, socket=%s\n",
$host, $user, $db, $port, $socket);
Modified: trunk/tests/ext/mysqli/mysqli_connect_error.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_connect_error.phpt 2007-07-06 12:31:55 UTC (rev 666)
+++ trunk/tests/ext/mysqli/mysqli_connect_error.phpt 2007-07-06 12:55:12 UTC (rev 667)
@@ -14,7 +14,7 @@
if (!is_null($tmp = @mysqli_connect_error($link)))
printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
- if (!$link = @mysqli_connect($host, $user, $passwd, $db, $port, $socket))
+ if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***,
dbname=%s, port=%s, socket=%s\n",
$host, $user, $db, $port, $socket);
| Thread |
|---|
| • PHP mysqlnd svn commit: r667 - trunk/tests/ext/mysqli | uwendel | 6 Jul |