diff options
| author | Damien Regad <dregad@mantisbt.org> | 2015-12-20 11:07:57 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2015-12-20 18:23:32 +0100 |
| commit | dcbe478834b607f0f572b934fbc1b4e137688a7f (patch) | |
| tree | 1095a4be85932ba50a7e69f6166698147fc07961 | |
| parent | 59e93d9b2ed7e8fc040f35a1eb228ae222116112 (diff) | |
| download | adodb-dcbe478834b607f0f572b934fbc1b4e137688a7f.tar.gz adodb-dcbe478834b607f0f572b934fbc1b4e137688a7f.tar.bz2 adodb-dcbe478834b607f0f572b934fbc1b4e137688a7f.zip | |
informix: avoid error when closing RS from destructor
Fixing this is somewhat academic considering that informix driver is no
longer supported since PHP 5.2.1
Fixes #170
| -rw-r--r-- | drivers/adodb-informix72.inc.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/adodb-informix72.inc.php b/drivers/adodb-informix72.inc.php index b57f991a..603b4830 100644 --- a/drivers/adodb-informix72.inc.php +++ b/drivers/adodb-informix72.inc.php @@ -378,7 +378,10 @@ class ADODB_informix72 extends ADOConnection { function _close() { $this->lastQuery = false; - return ifx_close($this->_connectionID); + if($this->_connectionID) { + return ifx_close($this->_connectionID); + } + return true; } } @@ -490,7 +493,10 @@ class ADORecordset_informix72 extends ADORecordSet { is running. All associated result memory for the specified result identifier will automatically be freed. */ function _close() { - return ifx_free_result($this->_queryID); + if($this->_queryID) { + return ifx_free_result($this->_queryID); + } + return true; } } |
