From: Ulf Wendel Date: Thu, 12 Jul 2007 20:55:12 +0000 (+0000) Subject: As usual: X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a191bb06de97d1ca413cddbf0c7f9a4d3ed3217;p=php As usual: - connection parameter tweaking - a bit of whitespace here and there - use UEXPECTF if need be --- diff --git a/ext/mysqli/tests/040.phpt b/ext/mysqli/tests/040.phpt index 79bfe0d5fb..18a42185f3 100644 --- a/ext/mysqli/tests/040.phpt +++ b/ext/mysqli/tests/040.phpt @@ -6,11 +6,11 @@ function test: mysqli_num_rows() --EXPECT-- int(1) +done! \ No newline at end of file diff --git a/ext/mysqli/tests/041.phpt b/ext/mysqli/tests/041.phpt index 90bed1ad49..7b750d6ecc 100644 --- a/ext/mysqli/tests/041.phpt +++ b/ext/mysqli/tests/041.phpt @@ -6,10 +6,10 @@ function test: mysqli_warning_count() --EXPECT-- int(1) +done! \ No newline at end of file diff --git a/ext/mysqli/tests/042.phpt b/ext/mysqli/tests/042.phpt index 181461af84..acc262992a 100644 --- a/ext/mysqli/tests/042.phpt +++ b/ext/mysqli/tests/042.phpt @@ -5,15 +5,15 @@ mysqli_fetch_object --FILE-- --EXPECTF-- object(stdClass)#%d (7) { @@ -60,6 +61,7 @@ object(stdClass)#%d (7) { ["c7"]=> string(1) "0" } +done! --UEXPECTF-- object(stdClass)#%d (7) { [u"c1"]=> @@ -77,3 +79,4 @@ object(stdClass)#%d (7) { [u"c7"]=> unicode(1) "0" } +done! \ No newline at end of file diff --git a/ext/mysqli/tests/043.phpt b/ext/mysqli/tests/043.phpt index d218d8f868..20fb52a9e7 100644 --- a/ext/mysqli/tests/043.phpt +++ b/ext/mysqli/tests/043.phpt @@ -5,14 +5,14 @@ mysqli_bind_param (UPDATE) --FILE-- --EXPECTF-- array(1) { [0]=> - %s(15) "Rasmus is No. 1" + string(15) "Rasmus is No. 1" +} +done! +--UEXPECF-- +array(1) { + [0]=> + unicode(15) "Rasmus is No. 1" } +done! \ No newline at end of file diff --git a/ext/mysqli/tests/044.phpt b/ext/mysqli/tests/044.phpt index 28e73a7e09..9a5069ec80 100644 --- a/ext/mysqli/tests/044.phpt +++ b/ext/mysqli/tests/044.phpt @@ -5,9 +5,9 @@ mysqli_get_server_version --FILE-- --EXPECT-- int(1) +done! \ No newline at end of file diff --git a/ext/mysqli/tests/045.phpt b/ext/mysqli/tests/045.phpt index abb6404850..36bb92a525 100644 --- a/ext/mysqli/tests/045.phpt +++ b/ext/mysqli/tests/045.phpt @@ -1,9 +1,9 @@ --TEST-- mysqli_bind_result (SHOW) --SKIPIF-- - --EXPECTF-- array(2) { [0]=> - %s(4) "port" + string(4) "port" + [1]=> + string(%d) "%s" +} +done! +--UEXPECTF-- +array(2) { + [0]=> + unicode(4) "port" [1]=> - %s(4) "%s" + unicode(%d) "%s" } +done! \ No newline at end of file diff --git a/ext/mysqli/tests/046.phpt b/ext/mysqli/tests/046.phpt index e88348bfa9..7916c24d30 100644 --- a/ext/mysqli/tests/046.phpt +++ b/ext/mysqli/tests/046.phpt @@ -5,11 +5,11 @@ mysqli_stmt_affected_rows (delete) --FILE-- --EXPECT-- bool(true) +done! \ No newline at end of file diff --git a/ext/mysqli/tests/047.phpt b/ext/mysqli/tests/047.phpt index d2bcda40d2..3715ba2b05 100644 --- a/ext/mysqli/tests/047.phpt +++ b/ext/mysqli/tests/047.phpt @@ -5,11 +5,11 @@ mysqli_get_metadata --FILE-- --EXPECTF-- === fetch_fields === @@ -194,6 +195,7 @@ object(stdClass)#5 (11) { ["decimals"]=> int(0) } +done! --UEXPECTF-- === fetch_fields === array(2) { @@ -348,3 +350,4 @@ object(stdClass)#5 (11) { [u"decimals"]=> int(0) } +done! \ No newline at end of file diff --git a/ext/mysqli/tests/048.phpt b/ext/mysqli/tests/048.phpt index cf4eab9fe3..d713947763 100644 --- a/ext/mysqli/tests/048.phpt +++ b/ext/mysqli/tests/048.phpt @@ -1,29 +1,29 @@ --TEST-- -mysqli bind_result (OO-Style) +mysqli bind_result (OO-Style) --SKIPIF-- --FILE-- select_db("test"); + $mysql->select_db($db); $mysql->query("DROP TABLE IF EXISTS test_fetch_null"); $mysql->query("CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint, - col3 int, col4 bigint, + col3 int, col4 bigint, col5 float, col6 double, - col7 date, col8 time, - col9 varbinary(10), + col7 date, col8 time, + col9 varbinary(10), col10 varchar(50), col11 char(20))"); - + $mysql->query("INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(2,'foo2', 88),(3,'foo3', 389789)"); $stmt = $mysql->prepare("SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11 from test_fetch_null"); - $stmt->bind_result($c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11); + $stmt->bind_result($c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11); $stmt->execute(); $stmt->fetch(); @@ -34,6 +34,7 @@ mysqli bind_result (OO-Style) $stmt->close(); $mysql->close(); + print "done!"; ?> --EXPECTF-- array(11) { @@ -56,7 +57,34 @@ array(11) { [8]=> NULL [9]=> - %s(4) "foo1" + string(4) "foo1" + [10]=> + string(4) "1000" +} +done! +--UEXPECTF-- +array(11) { + [0]=> + int(1) + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + [4]=> + NULL + [5]=> + NULL + [6]=> + NULL + [7]=> + NULL + [8]=> + NULL + [9]=> + unicode(4) "foo1" [10]=> - %s(4) "1000" + unicode(4) "1000" } +done! \ No newline at end of file diff --git a/ext/mysqli/tests/049.phpt b/ext/mysqli/tests/049.phpt index 5e82040ffc..8e458b386f 100644 --- a/ext/mysqli/tests/049.phpt +++ b/ext/mysqli/tests/049.phpt @@ -1,16 +1,16 @@ --TEST-- -mysql_fetch_row (OO-Style) +mysql_fetch_row (OO-Style) --SKIPIF-- --FILE-- select_db("test"); + $mysql->select_db($db); $result = $mysql->query("SELECT DATABASE()"); $row = $result->fetch_row(); $result->close(); @@ -18,9 +18,17 @@ mysql_fetch_row (OO-Style) var_dump($row); $mysql->close(); + print "done!"; ?> --EXPECTF-- array(1) { [0]=> - %s(4) "test" + string(%d) "%s" +} +done! +--UEXPECTF-- +array(1) { + [0]=> + unicode(%d) "%s" } +done! \ No newline at end of file