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(dirname(__FILE__).'/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===DONE===
28<?php exit(0); ?>
29--EXPECTF--
30Test - SQLT_BDOUBLE
31
32Warning: oci_bind_by_name(): Unknown or unsupported datatype given: 22 in %sbind_unsupported_2.php on line %d
33Test - SQLT_BFLOAT
34
35Warning: oci_bind_by_name(): Unknown or unsupported datatype given: 21 in %sbind_unsupported_2.php on line %d
36===DONE===
37