PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Tree » Bug #2653

XML_Tree still does not work with PHP5

Details

Submitted2004-10-31 08:09 UTC
Fromdaniel at electroteque dot org
StatusWont fix
PackageXML_Tree
PHP Version5.0.2
OSOSX
Roadmaps(Not assigned)

Comments

[2004-10-31 08:09 UTC] daniel at electroteque dot org

Description:
------------
Parse error: parse error, unexpected T_CLONE, expecting
T_STRING in /usr/lib/php/XML/Tree/Node.php on line 112

It has said this problem has been fixed but isnt, i just
upgraded from ver 1.1 to 2.0 beta, it was complaining
about Tree.php now Node.php

http://pear.php.net/bugs/bug.php?id=1892&edit=2

This was the suppose fix, i cannot see it publically
available in cvs ?

Actual result:
--------------
Parse error: parse error, unexpected T_CLONE, expecting
T_STRING in /usr/lib/php/XML/Tree/Node.php on line 112

[2004-12-14 22:34 UTC] aaron dot hawley at uvm dot edu

bump

http://bugs.php.net/bug.php?id=28155

[2004-12-14 22:56 UTC] aaron dot hawley at uvm dot edu

thread in php.pear.general starts here:

http://news.php.net/php.pear.general/start/15324

[2005-11-14 03:50 UTC] michal dot kuklis at gmail dot com

I'm trying to use LiveUser package (example 4) and I'm getting Parse error: parse error, unexpected T_CLONE, expecting T_STRING in C:\PHP\PEAR\XML\Tree.php on line 297
so it's related to 'clone' name problem in php4 (I'm using php5)

[2006-01-27 19:35 UTC] john at johnreynolds dot net

This happens because there are methods defined called clone() in both Tree.php and Tree/Node.php, but 'clone' means something special to PHP5, unlike PHP4. I just changed the name of the clone() methods, updated all references to them (which seem to be restricted to the methods themselves), and it all worked fine.