summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/059.phpt
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2007-07-12 20:57:30 +0000
committerUlf Wendel <uw@php.net>2007-07-12 20:57:30 +0000
commitb6cc61737fa7bbc1e6de046a46f7c051bf6af86a (patch)
tree205a1e69e8181046ed1791912a071975f8bc7140 /ext/mysqli/tests/059.phpt
parent2a191bb06de97d1ca413cddbf0c7f9a4d3ed3217 (diff)
downloadphp-git-b6cc61737fa7bbc1e6de046a46f7c051bf6af86a.tar.gz
Will this never end?
- connection parameter tweaking - a bit of whitespace here and there - use UEXPECTF if need be
Diffstat (limited to 'ext/mysqli/tests/059.phpt')
-rw-r--r--ext/mysqli/tests/059.phpt15
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/mysqli/tests/059.phpt b/ext/mysqli/tests/059.phpt
index 98149f303a..8ad4d86a08 100644
--- a/ext/mysqli/tests/059.phpt
+++ b/ext/mysqli/tests/059.phpt
@@ -5,19 +5,19 @@ sqlmode + bind
--FILE--
<?php
include "connect.inc";
-
+
/*** test mysqli_connect 127.0.0.1 ***/
- $link = mysqli_connect($host, $user, $passwd);
+ $link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
- mysqli_select_db($link, "test");
+ mysqli_select_db($link, $db);
mysqli_query($link, "SET SQL_MODE='PIPES_AS_CONCAT'");
- mysqli_query($link,"DROP TABLE IF EXISTS mbind");
- mysqli_query($link,"CREATE TABLE mbind (b varchar(25))");
+ mysqli_query($link,"DROP TABLE IF EXISTS mbind");
+ mysqli_query($link,"CREATE TABLE mbind (b varchar(25))");
$stmt = mysqli_prepare($link, "INSERT INTO mbind VALUES (?||?)");
-
+
mysqli_bind_param($stmt, "ss", $a, $b);
$a = "foo";
@@ -36,8 +36,11 @@ sqlmode + bind
var_dump($e);
mysqli_close($link);
+ print "done!";
?>
--EXPECT--
string(6) "foobar"
+done!
--UEXPECT--
unicode(6) "foobar"
+done! \ No newline at end of file