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