1--TEST--
2odbc_setoption(): Test for odbc_setoption() with persistent connection
3--EXTENSIONS--
4odbc
5--SKIPIF--
6<?php include 'skipif.inc'; ?>
7--FILE--
8<?php
9
10include 'config.inc';
11
12$conn = odbc_pconnect($dsn, $user, $pass);
13odbc_autocommit($conn, true);
14
15var_dump(odbc_setoption($conn, 1, 102 /* autocommit */, 0));
16
17var_dump(odbc_autocommit($conn));
18
19odbc_close($conn);
20
21?>
22--EXPECTF--
23Warning: odbc_setoption(): Unable to set option for persistent connection in %s on line %d
24bool(false)
25int(1)
26