1--TEST--
2odbc_data_source(): Basic test
3--SKIPIF--
4<?php
5	include 'skipif.inc';
6	if (odbc_data_source($conn, SQL_FETCH_FIRST) === NULL) {
7		die("skip no data sources defined on this system");
8	}
9?>
10--FILE--
11<?php
12
13include 'config.inc';
14
15$conn = odbc_connect($dsn, $user, $pass);
16
17var_dump(odbc_data_source($conn, NULL));
18var_dump(odbc_data_source($conn, ''));
19var_dump(odbc_data_source($conn, SQL_FETCH_FIRST));
20
21?>
22--EXPECTF--
23Warning: odbc_data_source(): Invalid fetch type (0) in %s on line %d
24bool(false)
25
26Warning: odbc_data_source() expects parameter 2 to be int, string given in %s on line %d
27NULL
28array(%d) {
29%a
30}
31