1--TEST--
2Bind with various unsupported 10g+ bind types
3--EXTENSIONS--
4oci8
5--FILE--
6<?php
7
8require(__DIR__.'/connect.inc');
9
10$types = array(
11    "SQLT_BDOUBLE" => SQLT_BDOUBLE,
12    "SQLT_BFLOAT" => SQLT_BFLOAT,
13);
14
15foreach ($types as $t => $v) {
16
17    echo "Test - $t\n";
18
19    $s = oci_parse($c, "select * from dual where dummy = :c1");
20    $c1 = "Doug";
21    oci_bind_by_name($s, ":c1", $c1, -1, $v);
22}
23
24?>
25--EXPECTF--
26Test - SQLT_BDOUBLE
27
28Warning: oci_bind_by_name(): Unknown or unsupported datatype given: 22 in %sbind_unsupported_2.php on line %d
29Test - SQLT_BFLOAT
30
31Warning: oci_bind_by_name(): Unknown or unsupported datatype given: 21 in %sbind_unsupported_2.php on line %d
32