diff options
Diffstat (limited to 'tests/connect_1_old.phpt')
-rw-r--r-- | tests/connect_1_old.phpt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/connect_1_old.phpt b/tests/connect_1_old.phpt new file mode 100644 index 0000000000..8210b82d6c --- /dev/null +++ b/tests/connect_1_old.phpt @@ -0,0 +1,35 @@ +--TEST-- +ociplogon() & ocinlogon() +--SKIPIF-- +<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> +--FILE-- +<?php + +require dirname(__FILE__)."/connect.inc"; + +if (!empty($dbase)) { + var_dump($c1 = ociplogon($user, $password, $dbase)); +} +else { + var_dump($c1 = ociplogon($user, $password)); +} + +if (!empty($dbase)) { + var_dump($c2 = ocinlogon($user, $password, $dbase)); +} +else { + var_dump($c2 = ocinlogon($user, $password)); +} + +var_dump(ocilogoff($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 |