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