Home » XML » XML_Tree » Bug #1892
Parse error on PHP5.0.0
Details
| Submitted | 2004-07-16 16:40 UTC |
|---|---|
| From | joelee at joeworks dot com |
| Status | Closed |
| Package | XML_Tree |
| PHP Version | 5.0.0 |
| OS | Linux (Gentoo Linux AMD64) |
| Roadmaps | (Not assigned) |
Comments
[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
[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
bump.
http://bugs.php.net/bug.php?id=28155