1--TEST--
2Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE
3--SKIPIF--
4<?php
5$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6require(dirname(__FILE__).'/skipif.inc');
7if (!defined('SQLT_BDOUBLE')) die('skip SQLT_BDOUBLE type not available on older Oracle clients');
8?>
9--FILE--
10<?php
11
12require dirname(__FILE__).'/connect.inc';
13
14$statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
15$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
16oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BDOUBLE);
17
18echo "Done\n";
19?>
20--EXPECTF--
21Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 22 in %sarray_bind_bdouble.php on line %d
22Done
23