mirror of
https://github.com/php/php-src.git
synced 2025-01-06 02:43:34 +08:00
33 lines
637 B
PHP
33 lines
637 B
PHP
--TEST--
|
|
oci_collection_assign()
|
|
--SKIPIF--
|
|
<?php
|
|
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
|
|
require(dirname(__FILE__).'/skipif.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require dirname(__FILE__)."/connect.inc";
|
|
require dirname(__FILE__)."/create_type.inc";
|
|
|
|
$coll1 = oci_new_collection($c, $type_name);
|
|
$coll2 = oci_new_collection($c, $type_name);
|
|
|
|
var_dump(oci_collection_append($coll1, 1));
|
|
|
|
var_dump(oci_collection_assign($coll2, $coll1));
|
|
|
|
var_dump(oci_collection_element_get($coll2, 0));
|
|
|
|
echo "Done\n";
|
|
|
|
require dirname(__FILE__)."/drop_type.inc";
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
float(1)
|
|
Done
|