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