--TEST-- DRCP: privileged connect --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'); } ?> --INI-- oci8.privileged_connect=1 --FILE-- --EXPECTF-- Warning: oci_connect(): ORA-01031: %s in %s on line %d bool(false) Warning: oci_connect(): ORA-01031: %s in %s on line %d bool(false) Warning: oci_new_connect(): ORA-01031: %s in %s on line %d bool(false) Warning: oci_new_connect(): ORA-01031: %s in %s on line %d bool(false) Warning: oci_pconnect(): ORA-01031: %s in %s on line %d bool(false) Warning: oci_pconnect(): ORA-01031: %s in %s on line %d bool(false) Done