cvs: php4 /ext/oci8 oci8.c
| From: | Andy Sautins | Date: | Wed, 19 Sep 2001 19:25:44 +0000 |
| Subject: | cvs: php4 /ext/oci8 oci8.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7486@lists.php.net to get a copy of this message | ||
asautins Wed Sep 19 15:25:44 2001 EDT
Modified files:
/php4/ext/oci8 oci8.c
Log:
Collections core-dump fix. ocicollgetelem was using OCIInd instead
of OCIInd * in call to OCICollGetElem
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.156 php4/ext/oci8/oci8.c:1.157
--- php4/ext/oci8/oci8.c:1.156 Mon Sep 17 16:52:31 2001
+++ php4/ext/oci8/oci8.c Wed Sep 19 15:25:43 2001
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.156 2001/09/17 20:52:31 dbenson Exp $ */
+/* $Id: oci8.c,v 1.157 2001/09/19 19:25:43 asautins Exp $ */
/* TODO list:
*
@@ -620,7 +620,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.156 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.157 $");
#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 );
@@ -4625,7 +4625,7 @@
ub4 ndx;
int inx;
dvoid *elem;
- OCIInd elemind;
+ OCIInd *elemind;
boolean exists;
OCIString *ocistr = (OCIString *)0;
text *str;
@@ -4667,7 +4667,7 @@
}
/* Return null if the value is null */
- if(elemind == OCI_IND_NULL) {
+ if(*elemind == OCI_IND_NULL) {
RETURN_FALSE;
}