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