privileged_connect1.phpt 564 B

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