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