Annotation of embedaddon/php/ext/oci8/tests/bug36010.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #36010 (Crash when executing SQL statment with lob parameter twice)
3: --SKIPIF--
4: <?php
5: $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
6: require(dirname(__FILE__).'/skipif.inc');
7: ?>
8: --FILE--
9: <?php
10:
11: require dirname(__FILE__).'/connect.inc';
12:
13: function f($conn)
14: {
15: $sql = "begin :p_clob := 'lob string'; end;";
16: $stid = oci_parse($conn, $sql);
17: $clob = oci_new_descriptor($conn, OCI_D_LOB);
18: oci_bind_by_name($stid, ":p_clob", $clob, -1, OCI_B_CLOB);
19: $r = oci_execute($stid, OCI_DEFAULT);
20: }
21:
22: f($c);
23: f($c);
24:
25: echo "Done\n";
26:
27: ?>
28: --EXPECT--
29: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>