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