--- embedaddon/php/ext/oci8/tests/drcp_cclass1.phpt 2012/02/21 23:47:58 1.1.1.1 +++ embedaddon/php/ext/oci8/tests/drcp_cclass1.phpt 2014/06/15 20:03:52 1.1.1.2 @@ -3,9 +3,21 @@ DRCP: Test setting connection class inline --SKIPIF-- = 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--