skipif.inc 451 B

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