From 659b27469042e8cb0fd2fc1d7a0de84cf4290413 Mon Sep 17 00:00:00 2001 From: Christian Kuhn Date: Tue, 5 Jul 2016 21:19:29 +0200 Subject: 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 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) --- adodb-xmlschema03.inc.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'adodb-xmlschema03.inc.php') 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 ); } } -- cgit v1.3