mirror of
https://github.com/php/php-src.git
synced 2025-01-25 21:23:45 +08:00
MF51: fix #36820 (Privileged connection with an Oracle password file fails)
This commit is contained in:
parent
45f6a3d87d
commit
49b16f7254
@ -1286,7 +1286,11 @@ open:
|
||||
case OCI_SYSDBA:
|
||||
case OCI_SYSOPER:
|
||||
default:
|
||||
OCI_G(errcode) = PHP_OCI_CALL(OCISessionBegin, (connection->svc, OCI_G(err), connection->session, (ub4) OCI_CRED_EXT, (ub4) session_mode));
|
||||
if (username_len == 1 && username[0] == '/' && password_len == 0) {
|
||||
OCI_G(errcode) = PHP_OCI_CALL(OCISessionBegin, (connection->svc, OCI_G(err), connection->session, (ub4) OCI_CRED_EXT, (ub4) session_mode));
|
||||
} else {
|
||||
OCI_G(errcode) = PHP_OCI_CALL(OCISessionBegin, (connection->svc, OCI_G(err), connection->session, (ub4) OCI_CRED_RDBMS, (ub4) session_mode));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user