--TEST-- mysqli_stmt_send_long_data() --SKIPIF-- --FILE-- getMessage() . \PHP_EOL; } if (false !== ($tmp = mysqli_stmt_send_long_data($stmt, 999, $blob))) printf("[014] Expecting boolean/false, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); if (true !== ($tmp = mysqli_stmt_send_long_data($stmt, 1, $blob))) printf("[015] Expecting boolean/true, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); $id = 1; if (true !== mysqli_stmt_execute($stmt)) printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); mysqli_stmt_close($stmt); if (!$res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id")) printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); if (1 != ($tmp = mysqli_num_rows($res))) printf("[018] Expecting 1 rows, mysqli_num_rows() reports %d rows. [%d] %s\n", $tmp, mysqli_errno($link), mysqli_error($link)); if (!$row = mysqli_fetch_assoc($res)) printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); mysqli_free_result($res); if (empty($row['id']) || empty($row['label']) || ($row['id'] != 1)) printf("[020] Record seems to be incomplete\n"); if ($blob != $row['label']) printf("[021] Blob value has not been stored properly!\n"); mysqli_close($link); print "done!"; ?> --CLEAN-- --EXPECT-- mysqli_stmt_send_long_data(): Argument #2 ($param_num) must be greater than or equal to 0 done!