Diff for /embedaddon/php/ext/oci8/tests/drcp_cclass1.phpt between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:47:58 version 1.1.1.2, 2014/06/15 20:03:52
Line 3  DRCP: Test setting connection class inline Line 3  DRCP: Test setting connection class inline
 --SKIPIF--  --SKIPIF--
 <?php   <?php 
 if (!extension_loaded('oci8')) die ("skip no oci8 extension");   if (!extension_loaded('oci8')) die ("skip no oci8 extension"); 
require(dirname(__FILE__)."/details.inc");require(dirname(__FILE__).'/connect.inc');
 if (!$test_drcp) die("skip testing DRCP connection class only works in DRCP mode");  if (!$test_drcp) die("skip testing DRCP connection class only works in DRCP mode");
 if (strcasecmp($user, "system") && strcasecmp($user, "sys")) die("skip needs to be run as a DBA user");   if (strcasecmp($user, "system") && strcasecmp($user, "sys")) die("skip needs to be run as a DBA user"); 
   
   preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches_sv);
   // This test in Oracle 12c needs a non-CDB or the root container
   if (isset($matches_sv[0]) && $matches_sv[1] >= 12) {
       $s = oci_parse($c, "select nvl(sys_context('userenv', 'con_name'), 'notacdb') as dbtype from dual");
       $r = @oci_execute($s);
       if (!$r)
           die('skip could not identify container type');
       $r = oci_fetch_array($s);
       if ($r['DBTYPE'] !== 'CDB$ROOT')
           die('skip cannot run test using a PDB');
   }
 ?>  ?>
 --FILE--  --FILE--
 <?php  <?php

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>