Collection fix. Fix core dump when accessing an element that is

not in the collection.
This commit is contained in:
Andy Sautins 2001-09-11 23:15:18 +00:00
parent 23fea6461d
commit 5abba5ee0e

View File

@ -4638,6 +4638,11 @@ PHP_FUNCTION(ocicollgetelem)
oci_error(connection->pError, "OCICollGetElem", connection->error);
RETURN_FALSE;
}
// Return false if value does not exist at that location
if(exists == 0) {
RETURN_FALSE;
}
switch (coll->element_typecode) {
case OCI_TYPECODE_DATE: