From: Andy Sautins Date: Wed, 19 Sep 2001 19:25:43 +0000 (+0000) Subject: Collections core-dump fix. ocicollgetelem was using OCIInd instead X-Git-Tag: PRE_SUBST_Z_MACROS~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=810dd37b902aabfe878288a0e6275719984c12ec;p=php Collections core-dump fix. ocicollgetelem was using OCIInd instead of OCIInd * in call to OCICollGetElem --- 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; }