xref: /PHP-5.3/ext/oci8/tests/clientversion.phpt (revision f4009b52)
1--TEST--
2oci_client_version()
3--SKIPIF--
4<?php
5if (!extension_loaded('oci8')) die("skip no oci8 extension");
6if (preg_match('/^1[012]\./', oci_client_version()) != 1) {
7    die("skip test expected to work only with Oracle 10g or greater version of client");
8}
9?>
10--FILE--
11<?php
12
13echo oci_client_version(), "\n";
14
15?>
16===DONE===
17<?php exit(0); ?>
18--EXPECTF--
19%d.%d.%d.%d.%d
20===DONE===
21