mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
34 lines
956 B
Plaintext
34 lines
956 B
Plaintext
|
--TEST--
|
||
|
privileged connect tests
|
||
|
--INI--
|
||
|
oci8.privileged_connect=1
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
|
||
|
--ENV--
|
||
|
return "
|
||
|
ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')."
|
||
|
NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')."
|
||
|
TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')."
|
||
|
";
|
||
|
--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--
|
||
|
Warning: oci_connect(): ORA-01031: insufficient privileges in %s on line %d
|
||
|
|
||
|
Warning: oci_connect(): ORA-01031: insufficient privileges in %s on line %d
|
||
|
|
||
|
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
|