mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Collection fix. Fix core dump when accessing an element that is
not in the collection.
This commit is contained in:
parent
23fea6461d
commit
5abba5ee0e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user