2006-01-14 22:22:48 +00:00
|
|
|
--TEST--
|
2014-11-19 19:59:31 +00:00
|
|
|
Bug #36010 (Crash when executing SQL statement with lob parameter twice)
|
2006-01-14 22:22:48 +00:00
|
|
|
--SKIPIF--
|
2011-06-10 19:16:35 +00:00
|
|
|
<?php
|
|
|
|
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
|
2019-03-15 21:55:30 +00:00
|
|
|
require(__DIR__.'/skipif.inc');
|
2018-09-24 03:27:27 +00:00
|
|
|
?>
|
2006-01-14 22:22:48 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2018-09-24 06:38:39 +00:00
|
|
|
|
2019-03-15 21:55:30 +00:00
|
|
|
require __DIR__.'/connect.inc';
|
2006-01-14 22:22:48 +00:00
|
|
|
|
|
|
|
function f($conn)
|
|
|
|
{
|
2020-02-03 21:52:20 +00:00
|
|
|
$sql = "begin :p_clob := 'lob string'; end;";
|
|
|
|
$stid = oci_parse($conn, $sql);
|
|
|
|
$clob = oci_new_descriptor($conn, OCI_D_LOB);
|
|
|
|
oci_bind_by_name($stid, ":p_clob", $clob, -1, OCI_B_CLOB);
|
|
|
|
$r = oci_execute($stid, OCI_DEFAULT);
|
2006-01-14 22:22:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
f($c);
|
|
|
|
f($c);
|
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
Done
|