php-src/ext/oci8/tests/lob_temp1.phpt
2018-09-24 16:38:39 +10:00

36 lines
671 B
PHP

--TEST--
closing temporary lobs
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
?>
--FILE--
<?php
require dirname(__FILE__).'/connect.inc';
$blob = oci_new_descriptor($c,OCI_D_LOB);
var_dump($blob->writeTemporary("test"));
var_dump($blob->load());
var_dump($blob->close());
$c = oci_pconnect($user, $password, $dbase);
$blob = oci_new_descriptor($c,OCI_D_LOB);
var_dump($blob->writeTemporary("test"));
var_dump($blob->load());
var_dump($blob->close());
echo "Done\n";
?>
--EXPECT--
bool(true)
string(4) "test"
bool(true)
bool(true)
string(4) "test"
bool(true)
Done