1--TEST--
2mysqli_stmt_attr_get() - prefetch
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7die("SKIP: prefetch isn't supported at the moment");
8?>
9--FILE--
10<?php
11    require('table.inc');
12
13    $stmt = mysqli_stmt_init($link);
14    mysqli_stmt_prepare($stmt, 'SELECT * FROM test');
15    if (1 !== ($tmp = mysqli_stmt_attr_get($stmt, MYSQLI_STMT_ATTR_PREFETCH_ROWS))) {
16        printf("[001] Expecting int/1, got %s/%s for attribute %s/%s\n",
17            gettype($tmp), $tmp, $k, $attr);
18    }
19    $stmt->close();
20    mysqli_close($link);
21    print "done!";
22?>
23--CLEAN--
24<?php
25    require_once("clean_table.inc");
26?>
27--EXPECT--
28done!
29