Home > Archive > PHP PEAR Questions and Answers > November 2004 > Re: XML_Tree + PHP5
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: XML_Tree + PHP5
|
|
| Greg Beaver 2004-11-04, 3:56 am |
| daniel@electroteque.org wrote:
> Hi there, I have hit a wall trying to port my applications to a PHP5
> envioronment. I am trying toanticipate a move to PHP5, but my projects which use XML_Tree for the menu
> system has failed. Ihave logged a bug and still not reply. It had been logged that it was
> fixed in cvs, the newestversion still doesnt work.
>
> Here is the error
>
> Parse error: parse error, unexpected T_CLONE, expecting T_STRING in
> /usr/lib/php/XML/Tree/Node.php on line 112
clone (T_CLONE token) is a reserved word in php5, so XML_Tree is not
php5-compatible, and in fact must break backwards compatibility in order
to fix this problem.
The best suggestion is to maintain a private fork of XML_Tree for your
private projects until there is a new version out that you can use.
Greg
| |
| daniel@electroteque.org 2004-11-04, 3:56 am |
| yeh i just renamed that function to clone_node , no method has referenced
it so all is , i willbe using simple xml once i get to php5.
> daniel@electroteque.org wrote:
>
> clone (T_CLONE token) is a reserved word in php5, so XML_Tree is not
> php5-compatible, and in fact must break backwards compatibility in
> order to fix this problem.
>
> The best suggestion is to maintain a private fork of XML_Tree for your
> private projects until there is a new version out that you can use.
>
> Greg
|
|
|
|
|