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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 7 + 16 = ?

 
 [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