xref: /PHP-7.3/ext/oci8/tests/serverversion.phpt (revision 37652336)
1--TEST--
2oci_server_version()
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require dirname(__FILE__)."/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
20$v = ociserverversion($c);
21var_dump(str_replace("\n", "", $v));
22
23echo "Done\n";
24
25?>
26--EXPECTF--
27resource(%d) of type (oci8 connection)
28string(%d) "Oracle %s"
29string(%d) "Oracle %s"
30Done
31