Annotation of embedaddon/php/ext/oci8/tests/coll_006_func.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ocinewcollection() + free()
! 3: --SKIPIF--
! 4: <?php
! 5: $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
! 6: require(dirname(__FILE__).'/skipif.inc');
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: require dirname(__FILE__)."/connect.inc";
! 12: require dirname(__FILE__)."/create_type.inc";
! 13:
! 14: var_dump($coll1 = ocinewcollection($c, $type_name));
! 15:
! 16: var_dump(oci_free_collection($coll1));
! 17: var_dump(oci_collection_size($coll1));
! 18:
! 19: echo "Done\n";
! 20:
! 21: require dirname(__FILE__)."/drop_type.inc";
! 22:
! 23: ?>
! 24: --EXPECTF--
! 25: object(OCI-Collection)#%d (1) {
! 26: ["collection"]=>
! 27: resource(%d) of type (oci8 collection)
! 28: }
! 29: bool(true)
! 30:
! 31: Warning: oci_collection_size(): %d is not a valid oci8 collection resource in %s on line %d
! 32: bool(false)
! 33: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>