From: Penny Leach Date: Fri, 27 Jun 2008 13:15:48 +0000 (+0200) Subject: php5 compat X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8dbc9016e258c7ab052f18ac709b68844183bf42;p=s9y.git php5 compat --- diff --git a/bundled-libs/XML/Tree.php b/bundled-libs/XML/Tree.php index da50d71..6c1ef6e 100644 --- a/bundled-libs/XML/Tree.php +++ b/bundled-libs/XML/Tree.php @@ -293,7 +293,6 @@ class XML_Tree extends XML_Parser * * @return object XML_Tree * @access public - */ function clone() { $clone=new XML_Tree($this->filename,$this->version); $clone->root=$this->root->clone(); @@ -306,6 +305,7 @@ class XML_Tree extends XML_Parser return($clone); } + */ /** * Print text representation of XML tree. diff --git a/bundled-libs/XML/Tree/Node.php b/bundled-libs/XML/Tree/Node.php index 7b5e318..d0d56eb 100644 --- a/bundled-libs/XML/Tree/Node.php +++ b/bundled-libs/XML/Tree/Node.php @@ -108,7 +108,6 @@ class XML_Tree_Node { * clone node and all its children (recursive) * * @return object reference to the clone-node - */ function &clone() { $clone=new XML_Tree_Node($this->name,$this->content,$this->attributes); @@ -123,11 +122,10 @@ class XML_Tree_Node { foreach($temp as $varname => $value) if (!in_array($varname,array('name','content','attributes','children'))) $clone->$varname=$value; - */ return($clone); } - + */ /** * inserts child ($child) to a specified child-position ($pos) *