File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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
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 /**
You can’t perform that action at this time.
0 commit comments