Back to index

php5  5.3.10
skipif.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 if (!extension_loaded('oci8')) die("skip oci8 extension is not available\n");
00004 
00005 // Check the test file is valid for this DB type
00006 require(dirname(__FILE__).'/connect.inc');
00007 $v = oci_server_version($c);
00008 if (strpos($v, 'Oracle Database') !== false)
00009     $dbtype = 'oracledb';
00010 else if (strpos($v, 'Oracle TimesTen') !== false)
00011     $dbtype = 'timesten';
00012 else {
00013     die("skip Unknown database type $v\n");
00014 }
00015 if (!array_key_exists($dbtype, $target_dbs) || $target_dbs[$dbtype] !== true)
00016     die("skip Test not valid for $v\n");
00017 
00018 ?>