1--TEST-- 2collection methods 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"; 14require __DIR__."/create_type.inc"; 15 16$coll1 = oci_new_collection($c, $type_name); 17 18var_dump(oci_collection_size($coll1)); 19var_dump(oci_collection_max($coll1)); 20var_dump(oci_collection_trim($coll1, 3)); 21var_dump(oci_collection_append($coll1, 1)); 22var_dump(oci_collection_element_get($coll1, 0)); 23var_dump(oci_collection_element_assign($coll1, 0, 2)); 24 25echo "Done\n"; 26 27require __DIR__."/drop_type.inc"; 28 29?> 30--EXPECTF-- 31int(0) 32int(0) 33 34Warning: oci_collection_trim(): OCI-22167: given trim size [3] must be less than or equal to [0] in %s on line %d 35bool(false) 36bool(true) 37float(1) 38bool(true) 39Done 40