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