cvs: pear /XML_Serializer Unserializer.php
| From: | Stephan Schmidt | Date: | Fri, 23 Apr 2004 17:17:48 +0000 |
| Subject: | cvs: pear /XML_Serializer Unserializer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18647@lists.php.net to get a copy of this message | ||
schst Fri Apr 23 13:17:48 2004 EDT
Modified files:
/pear/XML_Serializer Unserializer.php
Log:
fixed multiple calls to XML_Parser's constructor
http://cvs.php.net/diff.php/pear/XML_Serializer/Unserializer.php?r1=1.14&r2=1.15&ty=u
Index: pear/XML_Serializer/Unserializer.php
diff -u pear/XML_Serializer/Unserializer.php:1.14 pear/XML_Serializer/Unserializer.php:1.15
--- pear/XML_Serializer/Unserializer.php:1.14 Thu Dec 4 10:57:15 2003
+++ pear/XML_Serializer/Unserializer.php Fri Apr 23 13:17:48 2004
@@ -16,7 +16,7 @@
// | Authors: Stephan Schmidt <schst@php-tools.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Unserializer.php,v 1.14 2003/12/04 15:57:15 davey Exp $
+// $Id: Unserializer.php,v 1.15 2004/04/23 17:17:48 schst Exp $
/**
* uses PEAR error managemt
@@ -170,6 +170,9 @@
*/
function XML_Unserializer($options = null)
{
+ // reset parser and properties
+ $this->XML_Parser(null,"event");
+
if (is_array($options)) {
$this->options = array_merge($this->_defaultOptions, $options);
} else {
@@ -224,8 +227,6 @@
*/
function unserialize($data, $isFile = false, $options = null)
{
- // reset parser and properties
- $this->XML_Parser(null,"event");
$this->_unserializedData = null;
$this->_root = null;