Annotation of embedaddon/php/ext/oci8/tests/coll_002.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: oci_new_collection() + 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 = oci_new_collection($c, $type_name));
                     15: 
                     16: var_dump($coll1->free());
                     17: var_dump($coll1->size());
                     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>