summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/connect_1.phpt
blob: 6d76c8ddcc652c88ae55535ea0924f80599cc70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--TEST--
oci_pconnect() & oci_new_connect()
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--FILE--
<?php

require __DIR__."/connect.inc";

if (!empty($dbase)) {
	var_dump($c1 = oci_pconnect($user, $password, $dbase));
}
else {
	var_dump($c1 = oci_pconnect($user, $password));
}

if (!empty($dbase)) {
	var_dump($c2 = oci_new_connect($user, $password, $dbase));
}
else {
	var_dump($c2 = oci_new_connect($user, $password));
}

var_dump(oci_close($c1));
var_dump(ocilogoff($c2));

echo "Done\n";

?>
--EXPECTF--
resource(%d) of type (oci8 persistent connection)
resource(%d) of type (oci8 connection)
bool(true)
bool(true)
Done