php-src/ext/oci8/tests/connect_1.phpt
Antony Dovgal 31c35e5cad add 4 new tests
remove ENV tag from the old ones
2005-12-06 19:28:25 +00:00

36 lines
671 B
PHP

--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