1--TEST--
2Bind with various bind types not supported by TimesTen
3--EXTENSIONS--
4oci8
5--SKIPIF--
6<?php
7$target_dbs = array('oracledb' => false, 'timesten' => true);  // test runs on these DBs
8require(__DIR__.'/skipif.inc');
9?>
10--FILE--
11<?php
12
13require(__DIR__.'/connect.inc');
14
15$types = array(
16    "SQLT_CLOB" => SQLT_CLOB,
17    "SQLT_BLOB" => SQLT_BLOB,
18    "OCI_B_CLOB" => OCI_B_CLOB,
19    "OCI_B_BLOB" => OCI_B_BLOB,
20);
21
22foreach ($types as $t => $v) {
23
24    echo "Test - $t\n";
25
26    $s = oci_parse($c, "select * from dual where dummy = :c1");
27    $c1 = "Doug";
28    oci_bind_by_name($s, ":c1", $c1, -1, $v);
29}
30
31?>
32--EXPECTF--
33Test - SQLT_CLOB
34
35Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
36Test - SQLT_BLOB
37
38Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
39Test - OCI_B_CLOB
40
41Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
42Test - OCI_B_BLOB
43
44Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
45