From 810dd37b902aabfe878288a0e6275719984c12ec Mon Sep 17 00:00:00 2001 From: Andy Sautins Date: Wed, 19 Sep 2001 19:25:43 +0000 Subject: Collections core-dump fix. ocicollgetelem was using OCIInd instead of OCIInd * in call to OCICollGetElem --- ext/oci8/oci8.c | 4 ++-- 1 file 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; } -- cgit v1.2.1