xref: /PHP-7.3/ext/oci8/tests/lob_temp1.phpt (revision 37652336)
1--TEST--
2closing temporary lobs
3--SKIPIF--
4<?php
5$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6require(dirname(__FILE__).'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require dirname(__FILE__).'/connect.inc';
12
13$blob = oci_new_descriptor($c,OCI_D_LOB);
14var_dump($blob->writeTemporary("test"));
15var_dump($blob->load());
16var_dump($blob->close());
17
18$c = oci_pconnect($user, $password, $dbase);
19
20$blob = oci_new_descriptor($c,OCI_D_LOB);
21var_dump($blob->writeTemporary("test"));
22var_dump($blob->load());
23var_dump($blob->close());
24
25echo "Done\n";
26
27?>
28--EXPECT--
29bool(true)
30string(4) "test"
31bool(true)
32bool(true)
33string(4) "test"
34bool(true)
35Done
36