| Simon Ruderich 2007-09-14, 7:03 pm |
| On Thu, Sep 13, 2007 at 05:12:05PM -0300, francisco viola wrote:
> Hi!
> I'm trying to use XML_Tree (require_once 'XML/Tree.php';) , but I got an error:
>
> Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /usr/local/lib/php/XML/Tree.php on line 297
I just installed XML_Tree and tested it (require) and it worked, haven't
tested using it though.
Maybe you can reinstall/update it. If this doesn't work download the newest
version and try it again [1].
> My system version is:
> pear5 help version
> PEAR Version: 1.4.6
You should update to the newest PEAR version. This shouldn't have anything to
do with your problem, but who knows. The current version is 1.6.2.
> PHP Version: 5.1.2
> Zend Engine Version: 2.1.0
> Running on: Linux
> ...
> Could someone give me a help? (it seems a compatibility error, isn't it? What could be done?)
>
> thanks
> francisco
By the way, I just noticed you use PHP 5. Then maybe you should use PHP's own
XML handling; like suggested by the XML_Tree page [1].
Simon
[1]: http://pear.php.net/package/XML_Tree
--
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
|