php-src/ext/oci8/tests/serverversion.phpt
Antony Dovgal 31c35e5cad add 4 new tests
remove ENV tag from the old ones
2005-12-06 19:28:25 +00:00

31 lines
547 B
PHP

--TEST--
oci_server_version()
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--FILE--
<?php
require dirname(__FILE__)."/connect.inc";
if (!empty($dbase)) {
var_dump($c = oci_connect($user, $password, $dbase));
}
else {
var_dump($c = oci_connect($user, $password));
}
$v = oci_server_version($c);
var_dump(str_replace("\n", "", $v));
$v = ociserverversion($c);
var_dump(str_replace("\n", "", $v));
echo "Done\n";
?>
--EXPECTF--
resource(%d) of type (oci8 connection)
string(%d) "%s"
string(%d) "%s"
Done