summaryrefslogtreecommitdiff
path: root/drivers/adodb-oci8.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2023-03-16 19:07:11 +0100
committerDamien Regad <dregad@mantisbt.org>2023-03-17 22:55:29 +0100
commitc37230ed2fdecd57eefd26300c331629f92bc653 (patch)
tree59af95084ebed548ec7c4e7eecf6af2680a332c2 /drivers/adodb-oci8.inc.php
parentff2cefe7116ca29b0dee003af6fd5a8cb831c036 (diff)
downloadadodb-c37230ed2fdecd57eefd26300c331629f92bc653.tar.gz
adodb-c37230ed2fdecd57eefd26300c331629f92bc653.tar.bz2
adodb-c37230ed2fdecd57eefd26300c331629f92bc653.zip
Replace obsolete function alias
oci_free_cursor() alias was deprecated in PHP 5.4 and replaced by oci_free_statement() [1]. Fixes #937 [1]: https://www.php.net/manual/en/function.ocifreecursor.php
Diffstat (limited to 'drivers/adodb-oci8.inc.php')
-rw-r--r--drivers/adodb-oci8.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/adodb-oci8.inc.php b/drivers/adodb-oci8.inc.php
index 7d270c23..1019c793 100644
--- a/drivers/adodb-oci8.inc.php
+++ b/drivers/adodb-oci8.inc.php
@@ -1151,10 +1151,11 @@ END;
} else
$hasref = false;
+ /** @var ADORecordset_oci8 $rs */
$rs = $this->Execute($stmt);
if ($rs) {
if ($rs->databaseType == 'array') {
- oci_free_cursor($stmt[4]);
+ oci_free_statement($stmt[4]);
}
elseif ($hasref) {
$rs->_refcursor = $stmt[4];