xref: /PHP-8.3/ext/oci8/tests/connect_1.phpt (revision a53e5617)
1--TEST--
2oci_pconnect() & oci_new_connect()
3--EXTENSIONS--
4oci8
5--SKIPIF--
6<?php
7require_once 'skipifconnectfailure.inc';
8?>
9--FILE--
10<?php
11
12require __DIR__."/connect.inc";
13
14if (!empty($dbase)) {
15    var_dump($c1 = oci_pconnect($user, $password, $dbase));
16}
17else {
18    var_dump($c1 = oci_pconnect($user, $password));
19}
20
21if (!empty($dbase)) {
22    var_dump($c2 = oci_new_connect($user, $password, $dbase));
23}
24else {
25    var_dump($c2 = oci_new_connect($user, $password));
26}
27
28var_dump(oci_close($c1));
29var_dump(oci_close($c2));
30
31echo "Done\n";
32
33?>
34--EXPECTF--
35resource(%d) of type (oci8 persistent connection)
36resource(%d) of type (oci8 connection)
37bool(true)
38bool(true)
39Done
40