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