mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
fix the test
This commit is contained in:
parent
a5459c09c9
commit
517fd63c32
@ -27,17 +27,17 @@ require_once('skipifconnectfailure.inc');
|
||||
function func_test_mysqli_stmt_num_rows($stmt, $query, $expected, $offset) {
|
||||
|
||||
if (!mysqli_stmt_prepare($stmt, $query)) {
|
||||
printf("[%03d] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_error($stmt));
|
||||
printf("[%03d] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!mysqli_stmt_execute($stmt)) {
|
||||
printf("[%03d] [%d] %s\n", $offset + 1, mysqli_errno($stmt), mysqli_error($stmt));
|
||||
printf("[%03d] [%d] %s\n", $offset + 1, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!mysqli_stmt_store_result($stmt)) {
|
||||
printf("[%03d] [%d] %s\n", $offset + 2, mysqli_errno($stmt), mysqli_error($stmt));
|
||||
printf("[%03d] [%d] %s\n", $offset + 2, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user