Commit 7711e91f authored by Vincent Sherwood's avatar Vincent Sherwood Committed by Ralf Becker

ZP-805 Renamed constructor WBXMLDecoder() to __construct(). Released under the...

ZP-805 Renamed constructor WBXMLDecoder() to __construct(). Released under the Affero GNU General Public License (AGPL) version 3.
parent 90d800d6
...@@ -75,13 +75,13 @@ class WBXMLDecoder extends WBXMLDefs { ...@@ -75,13 +75,13 @@ class WBXMLDecoder extends WBXMLDefs {
else { else {
self::$loopCounter[$name]++; self::$loopCounter[$name]++;
} }
if (self::$loopCounter[$name] > self::MAXLOOP) { if (self::$loopCounter[$name] > self::MAXLOOP) {
throw new WBXMLException(sprintf("Loop count in while too high, code '%s' exceeded max. amount of permitted loops", $name)); throw new WBXMLException(sprintf("Loop count in while too high, code '%s' exceeded max. amount of permitted loops", $name));
} }
return true; return true;
} }
/** /**
* Resets the inWhile counter. * Resets the inWhile counter.
* *
...@@ -103,7 +103,7 @@ class WBXMLDecoder extends WBXMLDefs { ...@@ -103,7 +103,7 @@ class WBXMLDecoder extends WBXMLDefs {
* *
* @access public * @access public
*/ */
public function WBXMLDecoder($input) { public function __construct($input) {
$this->log = defined('WBXML_DEBUG') && WBXML_DEBUG; $this->log = defined('WBXML_DEBUG') && WBXML_DEBUG;
$this->in = $input; $this->in = $input;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment