xref: /PHP-8.3/ext/oci8/tests/coll_001.phpt (revision a53e5617)
1--TEST--
2oci_new_collection()
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(oci_new_collection($c, $type_name));
18var_dump(oci_new_collection($c, "NONEXISTENT"));
19
20echo "Done\n";
21
22require __DIR__."/drop_type.inc";
23
24?>
25--EXPECTF--
26object(OCICollection)#%d (1) {
27  ["collection"]=>
28  resource(%d) of type (oci8 collection)
29}
30
31Warning: oci_new_collection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d
32bool(false)
33Done
34