xref: /PHP-8.3/ext/oci8/tests/coll_004.phpt (revision a53e5617)
1--TEST--
2oci_collection_assign()
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";
15require __DIR__."/create_type.inc";
16
17$coll1 = oci_new_collection($c, $type_name);
18$coll2 = oci_new_collection($c, $type_name);
19
20var_dump($coll1->append(1));
21
22var_dump($coll2->assign($coll1));
23
24var_dump($coll2->getElem(0));
25
26echo "Done\n";
27
28require __DIR__."/drop_type.inc";
29
30?>
31--EXPECT--
32bool(true)
33bool(true)
34float(1)
35Done
36