mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fix bug #26892, ORA-21301 in ocinewcollection() call.
pEnv should be initialized in object mode too.
This commit is contained in:
parent
036e3663f0
commit
649b844c3c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user