summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Sautins <asautins@php.net>2001-09-19 19:25:43 +0000
committerAndy Sautins <asautins@php.net>2001-09-19 19:25:43 +0000
commit810dd37b902aabfe878288a0e6275719984c12ec (patch)
tree40316f2b798998ce9c65097f4c8d051b126c5e7a
parent926d1506e043549fcb22fc65c8eb70a6db99270d (diff)
downloadphp-git-810dd37b902aabfe878288a0e6275719984c12ec.tar.gz
Collections core-dump fix. ocicollgetelem was using OCIInd instead
of OCIInd * in call to OCICollGetElem
-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 4a0b5306ee..ce3387db93 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -4625,7 +4625,7 @@ PHP_FUNCTION(ocicollgetelem)
ub4 ndx;
int inx;
dvoid *elem;
- OCIInd elemind;
+ OCIInd *elemind;
boolean exists;
OCIString *ocistr = (OCIString *)0;
text *str;
@@ -4667,7 +4667,7 @@ PHP_FUNCTION(ocicollgetelem)
}
/* Return null if the value is null */
- if(elemind == OCI_IND_NULL) {
+ if(*elemind == OCI_IND_NULL) {
RETURN_FALSE;
}