xref: /PHP-7.1/ext/oci8/tests/coll_008.phpt (revision a2c0f872)
1--TEST--
2ocicollassign()
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";
12require dirname(__FILE__)."/create_type.inc";
13
14$coll1 = ocinewcollection($c, $type_name);
15$coll2 = ocinewcollection($c, $type_name);
16
17var_dump($coll1->append(1));
18
19var_dump($coll2->assign($coll1));
20
21var_dump($coll2->getElem(0));
22
23echo "Done\n";
24
25require dirname(__FILE__)."/drop_type.inc";
26
27?>
28--EXPECT--
29bool(true)
30bool(true)
31float(1)
32Done
33