1--TEST-- 2privileged connect tests 3--SKIPIF-- 4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> 5--INI-- 6oci8.privileged_connect=1 7--FILE-- 8<?php 9 10require dirname(__FILE__)."/connect.inc"; 11 12oci_connect("", "", "", false, OCI_SYSOPER); 13oci_connect("", "", "", false, OCI_SYSDBA); 14oci_connect("", "", "", false, -1); 15oci_connect("", "", "", false, "qwe"); 16 17echo "Done\n"; 18?> 19--EXPECTF-- 20Warning: oci_connect(): ORA-%d: %s in %s on line %d 21 22Warning: oci_connect(): ORA-%d: %s in %s on line %d 23 24Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d 25 26Warning: oci_connect() expects parameter 5 to be integer, string given in %s on line %d 27Done 28