summaryrefslogtreecommitdiff
path: root/adodb-xmlschema03.inc.php
diff options
context:
space:
mode:
authorChristian Kuhn <lolli@schwarzbu.ch>2016-07-05 21:19:29 +0200
committerDamien Regad <dregad@mantisbt.org>2016-08-02 17:13:20 +0200
commit659b27469042e8cb0fd2fc1d7a0de84cf4290413 (patch)
treeb2067ff54ab302cab3eecde456464213f5b4b8f4 /adodb-xmlschema03.inc.php
parent58b56e67048c765293e673d7605200037ad065ae (diff)
downloadadodb-659b27469042e8cb0fd2fc1d7a0de84cf4290413.tar.gz
adodb-659b27469042e8cb0fd2fc1d7a0de84cf4290413.tar.bz2
adodb-659b27469042e8cb0fd2fc1d7a0de84cf4290413.zip
xml: remove calls to 'unset($this)' (PHP 7.1 compatibility)
unset($this) throws a fatal error on linting. Use internal garbage collection to clean up old objects instead. Fixes #257 Signed-off-by: Damien Regad <dregad@mantisbt.org> As per PHP manual, "It is not possible to unset $this inside an object method since PHP 5." (see http://php.net/manual/function.unset, Notes section)
Diffstat (limited to 'adodb-xmlschema03.inc.php')
-rw-r--r--adodb-xmlschema03.inc.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/adodb-xmlschema03.inc.php b/adodb-xmlschema03.inc.php
index 0f261d00..c1ecb885 100644
--- a/adodb-xmlschema03.inc.php
+++ b/adodb-xmlschema03.inc.php
@@ -175,7 +175,6 @@ class dbObject {
* Destroys the object
*/
function destroy() {
- unset( $this );
}
/**
@@ -2380,7 +2379,6 @@ class adoSchema {
function Destroy() {
ini_set("magic_quotes_runtime", $this->mgq );
#set_magic_quotes_runtime( $this->mgq );
- unset( $this );
}
}