summaryrefslogtreecommitdiff
path: root/ext/oci8/oci8.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-01-20 18:39:48 +0000
committerAntony Dovgal <tony2001@php.net>2005-01-20 18:39:48 +0000
commitd0427feee4c841a3e0b332dde5fc990ade18f0b0 (patch)
tree5fc3cf3bb79f878f5347a7d34b3ecfe503d79d2d /ext/oci8/oci8.c
parent84a8849a3a10fde959207f61c4632c5490eba6dc (diff)
downloadphp-git-d0427feee4c841a3e0b332dde5fc990ade18f0b0.tar.gz
fix bug #31623 (OCILogin does not support password grace period)
Diffstat (limited to 'ext/oci8/oci8.c')
-rw-r--r--ext/oci8/oci8.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 0ef09d67c4..33132960df 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -2863,7 +2863,12 @@ static oci_session *_oci_open_session(oci_server* server,char *username,char *pa
if (OCI(error) != OCI_SUCCESS) {
oci_error(OCI(pError), "OCISessionBegin", OCI(error));
- goto CLEANUP;
+ /* OCISessionBegin returns OCI_SUCCESS_WITH_INFO when
+ * user's password has expired, but is still usable.
+ * */
+ if (OCI(error) != OCI_SUCCESS_WITH_INFO) {
+ goto CLEANUP;
+ }
}
/* Free Temporary Service Context */