xref: /PHP-8.0/ext/oci8/tests/serverversion.phpt (revision 45475c2e)
1--TEST--
2oci_server_version()
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require __DIR__."/connect.inc";
9
10if (!empty($dbase)) {
11    var_dump($c = oci_connect($user, $password, $dbase));
12}
13else {
14    var_dump($c = oci_connect($user, $password));
15}
16
17$v = oci_server_version($c);
18var_dump(str_replace("\n", "", $v));
19
20echo "Done\n";
21
22?>
23--EXPECTF--
24resource(%d) of type (oci8 connection)
25string(%d) "Oracle %s"
26Done
27