summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2004-01-15 15:06:57 +0000
committerAntony Dovgal <tony2001@php.net>2004-01-15 15:06:57 +0000
commit649b844c3c7603fae30d8bfb6e28e30488f3f6ca (patch)
tree14b67304bcbbdc3f6f234b9c5a7fb20d8e3b9560
parent036e3663f025cf7ce3bfb32c839c47023a076ea5 (diff)
downloadphp-git-649b844c3c7603fae30d8bfb6e28e30488f3f6ca.tar.gz
Fix bug #26892, ORA-21301 in ocinewcollection() call.
pEnv should be initialized in object mode too.
-rw-r--r--ext/oci8/oci8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index eb3a16d9ec..d9856ffc1e 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -2747,7 +2747,7 @@ static oci_session *_oci_open_session(oci_server* server,char *username,char *pa
CALL_OCI(
OCIEnvNlsCreate(
&session->pEnv,
- OCI_DEFAULT,
+ PHP_OCI_INIT_MODE,
0,
NULL,
NULL,
@@ -6893,7 +6893,7 @@ PHP_FUNCTION(oci_new_collection)
if (ac < 2 || ac > 3 || zend_get_parameters_ex(ac, &conn, &tdo, &schema) == FAILURE) {
WRONG_PARAM_COUNT;
}
-
+
convert_to_string_ex(tdo);
if (ac == 3) {