cvs: php4(PHP_4_3) /ext/oci8 oci8.c

From: Date: Mon, 21 Apr 2003 17:54:00 +0000
Subject: cvs: php4(PHP_4_3) /ext/oci8 oci8.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20416@lists.php.net to get a copy of this message
sniper Mon Apr 21 13:54:00 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/oci8 oci8.c Log: MFH: Fixed bug #23198 Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.183.2.2 php4/ext/oci8/oci8.c:1.183.2.3 --- php4/ext/oci8/oci8.c:1.183.2.2 Fri Jan 31 09:21:19 2003 +++ php4/ext/oci8/oci8.c Mon Apr 21 13:53:59 2003 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci8.c,v 1.183.2.2 2003/01/31 14:21:19 sniper Exp $ */ +/* $Id: oci8.c,v 1.183.2.3 2003/04/21 17:53:59 sniper Exp $ */ /* TODO list: * @@ -641,7 +641,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "OCI8 Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.2 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.3 $"); #ifndef PHP_WIN32 php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION ); php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR ); @@ -2154,7 +2154,7 @@ OCISvcCtx *svchp = 0; char *hashed_details; #ifdef HAVE_OCI9 - ub2 charsetid; + ub2 charsetid = 0; #endif TSRMLS_FETCH(); @@ -2218,9 +2218,10 @@ OCI(pEnv), charset)); - session->charsetId = charsetid; oci_debug("oci_do_connect: using charset id=%d",charsetid); } + + session->charsetId = charsetid; /* create an environment using the character set id, Oracle 9i+ ONLY */ CALL_OCI(OCIEnvNlsCreate( @@ -2648,6 +2649,7 @@ username = Z_STRVAL_PP(userParam); password = Z_STRVAL_PP(passParam); dbname = Z_STRVAL_PP(dbParam); + charset = ""; } else if (zend_get_parameters_ex(2, &userParam, &passParam) == SUCCESS) { convert_to_string_ex(userParam); convert_to_string_ex(passParam); @@ -2655,6 +2657,7 @@ username = Z_STRVAL_PP(userParam); password = Z_STRVAL_PP(passParam); dbname = ""; + charset = ""; } else { WRONG_PARAM_COUNT; }

« previous php.cvs (#20416) next »