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