1--TEST--
2odbc_close_all(): Basic test
3--EXTENSIONS--
4odbc
5--SKIPIF--
6<?php include 'skipif.inc'; ?>
7--FILE--
8<?php
9
10include 'config.inc';
11
12$conn1 = odbc_connect($dsn, $user, $pass);
13$conn2 = odbc_pconnect($dsn, $user, $pass);
14$result1 = odbc_columns($conn1, '', '', '', '');
15$result2 = odbc_columns($conn2, '', '', '', '');
16
17var_dump($conn1);
18var_dump($conn2);
19var_dump($result1);
20var_dump($result2);
21
22odbc_close_all();
23
24var_dump($conn1);
25var_dump($conn2);
26var_dump($result1);
27var_dump($result2);
28
29?>
30--EXPECTF--
31resource(%d) of type (odbc link)
32resource(%d) of type (odbc link persistent)
33resource(%d) of type (odbc result)
34resource(%d) of type (odbc result)
35resource(%d) of type (Unknown)
36resource(%d) of type (Unknown)
37resource(%d) of type (Unknown)
38resource(%d) of type (Unknown)
39