Skip to content

Commit 9ba47ff

Browse files
author
Samuel Akopyan
committed
Removed using of array of globals in nusoap
1 parent 9598499 commit 9ba47ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

framework/vendors/nusoap/nusoap.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
* --------
5555
* 07/07/2020 - class declaration changed to PHP5-7
5656
* 07/07/2020 - undefined var fix
57+
* 02/10/2020 - removed using of globals array
5758
*/
5859

5960
/* load classes
@@ -76,7 +77,7 @@
7677

7778
// class variable emulation
7879
// cf. http://www.webkreator.com/php/techniques/php-static-class-variables.html
79-
$GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'] = 9;
80+
8081

8182
/**
8283
*
@@ -229,7 +230,7 @@ class nusoap_base {
229230
* @access public
230231
*/
231232
function __construct() {
232-
$this->debugLevel = $GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'];
233+
$this->debugLevel = 9;
233234
}
234235

235236
/**
@@ -239,7 +240,7 @@ function __construct() {
239240
* @access public
240241
*/
241242
function getGlobalDebugLevel() {
242-
return $GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'];
243+
return $this->debugLevel;
243244
}
244245

245246
/**
@@ -249,7 +250,7 @@ function getGlobalDebugLevel() {
249250
* @access public
250251
*/
251252
function setGlobalDebugLevel($level) {
252-
$GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel'] = $level;
253+
$this->debugLevel = $level;
253254
}
254255

255256
/**

0 commit comments

Comments
 (0)