1--TEST-- 2privileged connect tests 3--EXTENSIONS-- 4oci8 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8if (getenv('SKIP_ASAN')) die('xleak leaks memory under asan'); 9?> 10--INI-- 11oci8.privileged_connect=1 12--FILE-- 13<?php 14 15require __DIR__."/connect.inc"; 16 17oci_connect("", "", "", false, OCI_SYSOPER); 18oci_connect("", "", "", false, OCI_SYSDBA); 19oci_connect("", "", "", false, -1); 20 21echo "Done\n"; 22?> 23--EXPECTF-- 24Warning: oci_connect(): ORA-%d: %s in %s on line %d 25 26Warning: oci_connect(): ORA-%d: %s in %s on line %d 27 28Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d 29Done 30