diff options
author | Andrey Hristov <andrey@php.net> | 2014-08-06 15:28:06 +0300 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2014-08-06 15:28:06 +0300 |
commit | ce5efa7adc4637957e70a6f6641a38f484baee99 (patch) | |
tree | ebbacc93a8c2db7a82b4316275f38a423e0b979e | |
parent | 41e1ccefd560a3472ba9230b226f14276bdde58d (diff) | |
parent | d72b943262fd7233b28bbb51265da34b688f9f8a (diff) | |
download | php-git-ce5efa7adc4637957e70a6f6641a38f484baee99.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
-rw-r--r-- | ext/mysqli/tests/mysqli_stmt_multires.phpt | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_multires.phpt b/ext/mysqli/tests/mysqli_stmt_multires.phpt index cce9f8d19b..28cf5e38f4 100644 --- a/ext/mysqli/tests/mysqli_stmt_multires.phpt +++ b/ext/mysqli/tests/mysqli_stmt_multires.phpt @@ -48,37 +48,42 @@ require_once('skipifconnectfailure.inc'); printf("[007] Shouldn't have fetched anything\n"); var_dump($c_id, $c_label); } + + if ($stmt->fetch()) { + printf("[008] No more rows expected\n"); + } + if (!$stmt->more_results()) { - printf("[008] Expected more results\n"); + printf("[009] Expected more results\n"); } else { - var_dump("next_result:", $stmt->next_result()); + var_dump("[009] next_result:", $stmt->next_result()); } if (!$stmt->bind_result($c_id, $c_label)) { - printf("[004] [%d] %s\n", $stmt->error, $stmt->errno); + printf("[010] [%d] %s\n", $stmt->error, $stmt->errno); } var_dump("pre:",$c_id, $c_label); if (!$stmt->fetch()) { - printf("[009] [%d] %s\n", $stmt->error, $stmt->errno); + printf("[011] [%d] %s\n", $stmt->error, $stmt->errno); } var_dump("post:",$c_id, $c_label); - if (!$stmt->more_results()) { - printf("[010] Expected more results\n"); - } else { - var_dump("next_result:", $stmt->next_result()); + if ($stmt->fetch()) { + printf("[012] No more rows expected\n"); } if (!$stmt->more_results()) { - printf("[010] Expected more results\n"); + printf("[013] Expected more results\n"); } else { - var_dump("next_result:", $stmt->next_result()); + var_dump("[013] next_result:", $stmt->next_result()); } if ($stmt->more_results()) { - printf("[011] No more results expected\n"); + printf("[014] No more results expected\n"); + } else { + printf("[014] No result, as expected\n"); } $stmt->close(); @@ -95,4 +100,21 @@ require_once('skipifconnectfailure.inc'); } ?> --EXPECTF-- -done +string(4) "pre:" +NULL +NULL +string(5) "post:" +int(13) +string(6) "a-ahoi" +string(18) "[009] next_result:" +bool(true) +string(4) "pre:" +int(13) +string(6) "a-ahoi" +string(5) "post:" +int(43) +string(5) "a---a" +string(18) "[013] next_result:" +bool(true) +[014] No result, as expected +done
\ No newline at end of file |