cvs: php-src /ext/oci8 oci8.c
| From: | Antony Dovgal | Date: | Thu, 15 Jan 2004 15:06:58 +0000 |
| Subject: | cvs: php-src /ext/oci8 oci8.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-25661@lists.php.net to get a copy of this message | ||
tony2001 Thu Jan 15 10:06:58 2004 EDT
Modified files:
/php-src/ext/oci8 oci8.c
Log:
Fix bug #26892, ORA-21301 in ocinewcollection() call.
pEnv should be initialized in object mode too.
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.233 php-src/ext/oci8/oci8.c:1.234
--- php-src/ext/oci8/oci8.c:1.233 Thu Jan 15 01:30:23 2004
+++ php-src/ext/oci8/oci8.c Thu Jan 15 10:06:57 2004
@@ -22,7 +22,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.233 2004/01/15 06:30:23 sniper Exp $ */
+/* $Id: oci8.c,v 1.234 2004/01/15 15:06:57 tony2001 Exp $ */
/* TODO list:
*
@@ -784,7 +784,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.233 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.234 $");
sprintf(buf, "%ld", num_persistent);
php_info_print_table_row(2, "Active Persistent Links", buf);
@@ -2747,7 +2747,7 @@
CALL_OCI(
OCIEnvNlsCreate(
&session->pEnv,
- OCI_DEFAULT,
+ PHP_OCI_INIT_MODE,
0,
NULL,
NULL,
@@ -6893,7 +6893,7 @@
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) {