2005-12-01 21:39:48 +08:00
|
|
|
--TEST--
|
|
|
|
privileged connect tests
|
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
|
2005-12-07 03:28:25 +08:00
|
|
|
--INI--
|
|
|
|
oci8.privileged_connect=1
|
2005-12-01 21:39:48 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require dirname(__FILE__)."/connect.inc";
|
|
|
|
|
|
|
|
oci_connect("", "", "", false, OCI_SYSOPER);
|
|
|
|
oci_connect("", "", "", false, OCI_SYSDBA);
|
|
|
|
oci_connect("", "", "", false, -1);
|
|
|
|
oci_connect("", "", "", false, "qwe");
|
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2006-12-12 21:11:36 +08:00
|
|
|
Warning: oci_connect(): ORA-%d: %s in %s on line %d
|
2005-12-01 21:39:48 +08:00
|
|
|
|
2006-12-12 21:11:36 +08:00
|
|
|
Warning: oci_connect(): ORA-%d: %s in %s on line %d
|
2005-12-01 21:39:48 +08:00
|
|
|
|
|
|
|
Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
|
|
|
|
|
|
|
|
Warning: oci_connect() expects parameter 5 to be long, string given in %s on line %d
|
|
|
|
Done
|