12345678910111213141516171819202122232425262728 |
- --TEST--
- privileged connect tests
- --EXTENSIONS--
- oci8
- --SKIPIF--
- <?php
- if (getenv('SKIP_ASAN')) die('skip leaks memory under asan');
- ?>
- --INI--
- oci8.privileged_connect=1
- --FILE--
- <?php
- require __DIR__."/connect.inc";
- oci_connect("", "", "", false, OCI_SYSOPER);
- oci_connect("", "", "", false, OCI_SYSDBA);
- oci_connect("", "", "", false, -1);
- echo "Done\n";
- ?>
- --EXPECTF--
- Warning: oci_connect(): ORA-%d: %s in %s on line %d
- Warning: oci_connect(): ORA-%d: %s in %s on line %d
- Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
- Done
|