xref: /PHP-7.0/ext/oci8/tests/connect.inc (revision c7a8bd6a)
1<?php
2
3require("details.inc");
4
5if (!empty($dbase)) {
6    $c = @oci_connect($user, $password, $dbase);
7}
8else {
9    $c = @oci_connect($user, $password);
10}
11
12if (!$c) {
13    $m = oci_error();
14    trigger_error("connect.inc: Failed to connect as '$user' to '$dbase': ". $m['message'], E_USER_ERROR);
15}
16
17?>
18