]> granicus.if.org Git - php/commitdiff
Collections core-dump fix. ocicollgetelem was using OCIInd instead
authorAndy Sautins <asautins@php.net>
Wed, 19 Sep 2001 19:25:43 +0000 (19:25 +0000)
committerAndy Sautins <asautins@php.net>
Wed, 19 Sep 2001 19:25:43 +0000 (19:25 +0000)
of OCIInd * in call to OCICollGetElem

ext/oci8/oci8.c

index 4a0b5306ee94c9facaf701bcccf29d52f933907b..ce3387db93e7b2fc3d8901629b701c7b44d59ae2 100644 (file)
@@ -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;
                }