summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/connect_1.phpt
blob: 647a92ceebb4f52e3d42d38bc012fe4274882f50 (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 dirname(__FILE__)."/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