From f5848fdeaa3739ea9bd9aef59e08d2d05a89be6d Mon Sep 17 00:00:00 2001 From: fritzy Date: Fri, 4 Apr 2008 17:24:44 +0000 Subject: [PATCH] * processUntil can now be called from a handler invoked from processUntil git-svn-id: svn://netflint.net/xmpphp@15 ef36c318-a008-4979-b6e8-6b496270793b --- xmlstream.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmlstream.php b/xmlstream.php index 2e5379a..73bbdfc 100644 --- a/xmlstream.php +++ b/xmlstream.php @@ -218,6 +218,8 @@ class XMLStream { } function endXML($parser, $name) { + #$this->log->log("Ending $name", LOGGING_DEBUG); + #print "$name\n"; if($this->been_reset) { $this->been_reset = False; $this->xml_depth = 0; @@ -234,6 +236,7 @@ class XMLStream { } if($searchxml->name == $handler[0] and ($searchxml->ns == $handler[1] or (!$handler[1] and $searchxml->ns == $this->default_ns))) { if($handler[3] === Null) $handler[3] = $this; + $this->log->log("Calling {$handler[2]}", LOGGING_DEBUG); call_user_method($handler[2], $handler[3], $this->xmlobj[2]); } } @@ -323,7 +326,6 @@ class XMLStream { } function setupParser() { - unset($this->parser); $this->parser = xml_parser_create('UTF-8'); xml_parser_set_option($this->parser,XML_OPTION_SKIP_WHITE,1); xml_parser_set_option($this->parser,XML_OPTION_TARGET_ENCODING, "UTF-8");