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