Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0RC3

Bug #1892 Parse error on PHP5.0.0
Submitted: 2004-07-16 16:40 UTC
From: joelee at joeworks dot com Assigned:
Status: Closed Package: XML_Tree
PHP Version: 5.0.0 OS: Linux (Gentoo Linux AMD64)
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2004-07-16 16:50 UTC
Package:
Bug Type:
Summary:
From: joelee at joeworks dot com
New email:
PHP Version: Package Version: OS:

 

 [2004-07-16 16:40 UTC] joelee at joeworks dot com
Description: ------------ XML_Tree gets a parse error on PHP5, because it uses a PHP5 reserved name clone() as a methods. Reproduce code: --------------- <?php // Running on PHP5.0.0 require_once ('XML/Tree.php'); echo "Hello PEAR!"; ?> Expected result: ---------------- Hello PEAR! Actual result: -------------- Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /usr/jws/lib/php/XML/Tree.php on line 297

Comments

 [2004-07-16 16:50 UTC] joelee at joeworks dot com
Fixed on CVS
 [2004-12-14 22:33 UTC] aaron dot hawley at uvm dot edu