summaryrefslogtreecommitdiff
path: root/ext/mysqli
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2009-09-22 08:42:44 +0000
committerUlf Wendel <uw@php.net>2009-09-22 08:42:44 +0000
commit75d415efbe5365c22842484825616f94d01da99f (patch)
treec6778365ba4155d10ec202a0e63d1a9ab0e06a20 /ext/mysqli
parent17aff0eb257b445f114d336567df7580078cc811 (diff)
downloadphp-git-75d415efbe5365c22842484825616f94d01da99f.tar.gz
Fixing test
Diffstat (limited to 'ext/mysqli')
-rw-r--r--ext/mysqli/tests/mysqli_real_connect.phpt17
1 files changed, 10 insertions, 7 deletions
diff --git a/ext/mysqli/tests/mysqli_real_connect.phpt b/ext/mysqli/tests/mysqli_real_connect.phpt
index effae2bc24..5e474d6d2f 100644
--- a/ext/mysqli/tests/mysqli_real_connect.phpt
+++ b/ext/mysqli/tests/mysqli_real_connect.phpt
@@ -161,12 +161,13 @@ require_once('skipifconnectfailure.inc');
printf("[025] Usage of mysqli.default_host=p: did not fail\n") ;
mysqli_close($link);
}
+ @mysqli_close($link);
}
@var_dump($link);
- if (NULL === ($tmp = mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
- printf("[026] Expecting not NULL, got %s/%s\n", gettype($tmp), $tmp);
+ if (NULL !== ($tmp = mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
+ printf("[026] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
print "done!";
?>
@@ -180,17 +181,17 @@ object(mysqli)#%d (%d) {
[%u|b%"affected_rows"]=>
NULL
[%u|b%"client_info"]=>
- %unicode|string%(%d) "%s"
+ %s
[%u|b%"client_version"]=>
int(%d)
[%u|b%"connect_errno"]=>
int(%d)
[%u|b%"connect_error"]=>
- %unicode|string%(%d) "%s"
+ %unicode|string%(%d) "%s
[%u|b%"errno"]=>
- int(%d)
+ %s
[%u|b%"error"]=>
- %unicode|string%(%d) "%s"
+ %s
[%u|b%"field_count"]=>
NULL
[%u|b%"host_info"]=>
@@ -212,4 +213,6 @@ object(mysqli)#%d (%d) {
[%u|b%"warning_count"]=>
NULL
}
-done!
+
+Warning: mysqli_real_connect(): Couldn't fetch mysqli in %s on line %d
+done! \ No newline at end of file