diff options
Diffstat (limited to 'ext/oci8/tests/connect.inc')
-rw-r--r-- | ext/oci8/tests/connect.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/oci8/tests/connect.inc b/ext/oci8/tests/connect.inc new file mode 100644 index 0000000..06d1348 --- /dev/null +++ b/ext/oci8/tests/connect.inc @@ -0,0 +1,17 @@ +<?php + +require("details.inc"); + +if (!empty($dbase)) { + $c = @oci_connect($user, $password, $dbase); +} +else { + $c = @oci_connect($user, $password); +} + +if (!$c) { + $m = oci_error(); + trigger_error("connect.inc: Failed to connect as '$user' to '$dbase': ". $m['message'], E_USER_ERROR); +} + +?> |