From: Georg Richter Date: Mon, 16 Feb 2004 15:32:46 +0000 (+0000) Subject: fixed some tests X-Git-Tag: RELEASE_0_2_0~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d23dff1220976f445c58082c2ceaaca130cd06e6;p=php fixed some tests added skip section for prepared statements when using SHOW command --- 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-- +field_count) { + printf("skip SHOW command is not supported in prepared statements."); + } + $stmt->close(); + mysqli_close($link); +?> --FILE--