1--TEST-- 2oci_new_collection() + free() 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 17var_dump($coll1 = oci_new_collection($c, $type_name)); 18var_dump($coll1->free()); 19 20try { 21 var_dump($coll1->size()); 22} catch (TypeError $error) { 23 var_dump($error->getMessage()); 24} 25 26var_dump(oci_new_collection($c, "NONEXISTENT")); 27 28echo "Done\n"; 29 30require __DIR__."/drop_type.inc"; 31 32?> 33--EXPECTF-- 34object(OCICollection)#%d (1) { 35 ["collection"]=> 36 resource(%d) of type (oci8 collection) 37} 38bool(true) 39string(%d) "OCICollection::size(): supplied resource is not a valid oci8 collection resource" 40 41Warning: oci_new_collection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d 42bool(false) 43Done 44