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