From 8dbc9016e258c7ab052f18ac709b68844183bf42 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Fri, 27 Jun 2008 15:15:48 +0200 Subject: [PATCH] php5 compat --- bundled-libs/XML/Tree.php | 2 +- bundled-libs/XML/Tree/Node.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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) * -- 2.39.5