Welcome to Vtiger Community. To gain access for account, please contact [ info @ vtiger.com ]

Commit de67afda720651a81658d2e64301571b52e04725

Authored by Prasad
1 parent c14edb62

Syntax fix to be php7 compatible.

libraries/log4php.debug/xml/LoggerDOMConfigurator.php
... ... @@ -138,7 +138,7 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
138 138 function configure($url = '')
139 139 {
140 140 $configurator = new LoggerDOMConfigurator();
141   - $repository =& LoggerManager::getLoggerRepository();
  141 + $repository = LoggerManager::getLoggerRepository();
142 142 return $configurator->doConfigure($url, $repository);
143 143 }
144 144  
... ... @@ -184,11 +184,11 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
184 184 function parse($xmlData, &$repository)
185 185 {
186 186 // LoggerManager::resetConfiguration();
187   - $this->repository =& $repository;
  187 + $this->repository = $repository;
188 188  
189 189 $parser = xml_parser_create_ns();
190 190  
191   - xml_set_object($parser, &$this);
  191 + xml_set_object($parser, $this);
192 192 xml_set_element_handler($parser, "tagOpen", "tagClose");
193 193  
194 194 $result = xml_parse($parser, $xmlData, true);
... ... @@ -252,7 +252,7 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
252 252  
253 253 LoggerLog::debug("LoggerDOMConfigurator::tagOpen():tag=[$tag]:name=[$name]:class=[$class]");
254 254  
255   - $this->appender =& LoggerAppender::singleton($name, $class);
  255 + $this->appender = LoggerAppender::singleton($name, $class);
256 256 if ($this->appender === null) {
257 257 LoggerLog::warn("LoggerDOMConfigurator::tagOpen() APPENDER cannot instantiate appender '$name'");
258 258 }
... ... @@ -270,7 +270,7 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
270 270  
271 271 LoggerLog::debug("LoggerDOMConfigurator::tagOpen() APPENDER-REF ref='$appenderName'");
272 272  
273   - $appender =& LoggerAppender::singleton($appenderName);
  273 + $appender = LoggerAppender::singleton($appenderName);
274 274 if ($appender !== null) {
275 275 switch (end($this->state)) {
276 276 case LOG4PHP_LOGGER_DOM_CONFIGURATOR_LOGGER_STATE:
... ... @@ -338,7 +338,7 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
338 338  
339 339 $class = $this->subst(@$attribs['CLASS']);
340 340 if (empty($class)) {
341   - $this->logger =& $this->repository->getLogger($loggerName);
  341 + $this->logger = $this->repository->getLogger($loggerName);
342 342 } else {
343 343 $className = basename($class);
344 344 if (!class_exists($className))
... ... @@ -351,7 +351,7 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
351 351 } else {
352 352  
353 353 if (in_array('getlogger', get_class_methods($className))) {
354   - $this->logger =& call_user_func(array($className, 'getlogger'), $loggerName);
  354 + $this->logger = call_user_func(array($className, 'getlogger'), $loggerName);
355 355 } else {
356 356 LoggerLog::warn(
357 357 "LoggerDOMConfigurator::tagOpen() LOGGER. ".
... ... @@ -491,7 +491,7 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
491 491  
492 492 LoggerLog::debug("LoggerDOMConfigurator::tagOpen() ROOT");
493 493  
494   - $this->logger =& LoggerManager::getRootLogger();
  494 + $this->logger = LoggerManager::getRootLogger();
495 495  
496 496 $this->state[] = LOG4PHP_LOGGER_DOM_CONFIGURATOR_ROOT_STATE;
497 497 break;
... ... @@ -606,4 +606,4 @@ class LoggerDOMConfigurator extends LoggerConfigurator {
606 606 }
607 607  
608 608 }
609   -?>
610 609 \ No newline at end of file
  610 +?>
... ...