diff options
-rw-r--r-- | ext/mysqli/tests/017.phpt | 4 | ||||
-rw-r--r-- | ext/mysqli/tests/026.phpt | 6 | ||||
-rw-r--r-- | ext/mysqli/tests/035.phpt | 4 | ||||
-rw-r--r-- | ext/mysqli/tests/045.phpt | 17 |
4 files changed, 24 insertions, 7 deletions
diff --git a/ext/mysqli/tests/017.phpt b/ext/mysqli/tests/017.phpt index 58d40609d3..3447614428 100644 --- a/ext/mysqli/tests/017.phpt +++ b/ext/mysqli/tests/017.phpt @@ -22,9 +22,11 @@ mysqli fetch functions mysqli_close($link); ?> --EXPECT-- -array(2) { +array(3) { [0]=> string(14) "root@localhost" [1]=> string(4) "test" + [2]=> + string(3) "foo" } diff --git a/ext/mysqli/tests/026.phpt b/ext/mysqli/tests/026.phpt index 63f97233de..2c7f9f02bd 100644 --- a/ext/mysqli/tests/026.phpt +++ b/ext/mysqli/tests/026.phpt @@ -19,9 +19,9 @@ mysqli bind_param/bind_result with send_long_data $c1 = "Hello World"; - mysqli_send_long_data($stmt, 2, "This is the first sentence."); - mysqli_send_long_data($stmt, 2, " And this is the second sentence."); - mysqli_send_long_data($stmt, 2, " And finally this is the last sentence."); + mysqli_send_long_data($stmt, 1, "This is the first sentence."); + mysqli_send_long_data($stmt, 1, " And this is the second sentence."); + mysqli_send_long_data($stmt, 1, " And finally this is the last sentence."); mysqli_execute($stmt); mysqli_stmt_close($stmt); diff --git a/ext/mysqli/tests/035.phpt b/ext/mysqli/tests/035.phpt index 34af7c0a56..a02af059d8 100644 --- a/ext/mysqli/tests/035.phpt +++ b/ext/mysqli/tests/035.phpt @@ -11,9 +11,9 @@ function test: mysqli_get_server_info $sinfo = substr(mysqli_get_server_info($link),0,1); - var_dump($sinfo); + var_dump(strlen($sinfo)); mysqli_close($link); ?> --EXPECT-- -string(1) "4" +int(1) diff --git a/ext/mysqli/tests/045.phpt b/ext/mysqli/tests/045.phpt index ab98535d54..dc58bcfb08 100644 --- a/ext/mysqli/tests/045.phpt +++ b/ext/mysqli/tests/045.phpt @@ -1,5 +1,20 @@ --TEST-- mysqli_bind_result (SHOW) +--SKIPIF-- +<?php + include "connect.inc"; + $link = mysqli_connect("localhost", $user, $passwd); + + + $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'"); + mysqli_execute($stmt); + + if (!$stmt->field_count) { + printf("skip SHOW command is not supported in prepared statements."); + } + $stmt->close(); + mysqli_close($link); +?> --FILE-- <?php include "connect.inc"; @@ -8,8 +23,8 @@ mysqli_bind_result (SHOW) $link = mysqli_connect("localhost", $user, $passwd); $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'"); - mysqli_execute($stmt); + mysqli_bind_result($stmt, $c1, $c2); mysqli_fetch($stmt); mysqli_stmt_close($stmt); |