From ee7671afb5d87b7509b2a815a6b151e3a8a74e76 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Mon, 24 Feb 2014 17:01:30 -0800 Subject: [PATCH] Reduce test noise on cross Oracle client <-> server version tests. This fix is already in PHP 5.6+ --- ext/oci8/tests/drcp_cclass1.phpt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ext/oci8/tests/drcp_cclass1.phpt b/ext/oci8/tests/drcp_cclass1.phpt index 068331e5a95ae..5c78a2943e94e 100644 --- a/ext/oci8/tests/drcp_cclass1.phpt +++ b/ext/oci8/tests/drcp_cclass1.phpt @@ -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--