xref: /PHP-8.3/ext/oci8/tests/skipif.inc (revision a53e5617)
1<?php
2
3// Check the test file is valid for this DB type
4require dirname(__FILE__).'/connect.inc';
5$v = oci_server_version($c);
6if (strpos($v, 'Oracle Database') !== false)
7    $dbtype = 'oracledb';
8else if (strpos($v, 'Oracle TimesTen') !== false)
9    $dbtype = 'timesten';
10else {
11    die("skip Unknown database type $v\n");
12}
13if (!array_key_exists($dbtype, $target_dbs) || $target_dbs[$dbtype] !== true)
14    die("skip Test not valid for $v\n");
15
16?>
17